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:
Dion Moult
2024-09-02 17:46:44 +10:00
parent 521b0ab58d
commit d1565ec1e6
2 changed files with 2 additions and 0 deletions
@@ -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