mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Fix #5273. Bug where Shift-E allowed you to edit non-roof/railing elements if you also had them selected.
This commit is contained in:
@@ -450,6 +450,7 @@ class EnableEditingRailingPath(bpy.types.Operator, tool.Ifc.Operator):
|
||||
|
||||
def _execute(self, context):
|
||||
obj = context.active_object
|
||||
[o.select_set(False) for o in context.selected_objects if o != obj]
|
||||
props = obj.BIMRailingProperties
|
||||
data = tool.Model.get_modeling_bbim_pset_data(obj, "BBIM_Railing")["data_dict"]
|
||||
# required since we could load pset from .ifc and BIMRoofProperties won't be set
|
||||
|
||||
@@ -644,6 +644,7 @@ class EnableEditingRoofPath(bpy.types.Operator, tool.Ifc.Operator):
|
||||
|
||||
def _execute(self, context):
|
||||
obj = context.active_object
|
||||
[o.select_set(False) for o in context.selected_objects if o != obj]
|
||||
props = obj.BIMRoofProperties
|
||||
data = tool.Model.get_modeling_bbim_pset_data(obj, "BBIM_Roof")["data_dict"]
|
||||
# required since we could load pset from .ifc and BIMRoofProperties won't be set
|
||||
|
||||
Reference in New Issue
Block a user