mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 03:59:55 +00:00
Minor fix to sync IFC mode and Blender mode when editing profiles
This commit is contained in:
@@ -1639,11 +1639,14 @@ class OverrideModeSetEdit(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
if len(context.selected_objects) == 1 and context.active_object == context.selected_objects[0]:
|
if len(context.selected_objects) == 1 and context.active_object == context.selected_objects[0]:
|
||||||
tool.Blender.select_and_activate_single_object(context, obj)
|
tool.Blender.select_and_activate_single_object(context, obj)
|
||||||
operator()
|
operator()
|
||||||
|
context.scene.BIMGeometryProperties.is_changing_mode = True
|
||||||
|
if context.scene.BIMGeometryProperties.mode != "EDIT":
|
||||||
|
context.scene.BIMGeometryProperties.mode = "EDIT"
|
||||||
|
context.scene.BIMGeometryProperties.is_changing_mode = False
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
else:
|
self.report({"INFO"}, "Only a single profile-based representation can be edited at a time.")
|
||||||
self.report({"INFO"}, "Only a single profile-based representation can be edited at a time.")
|
obj.select_set(False)
|
||||||
obj.select_set(False)
|
continue
|
||||||
continue
|
|
||||||
|
|
||||||
if tool.Geometry.is_meshlike(representation):
|
if tool.Geometry.is_meshlike(representation):
|
||||||
tool.Ifc.edit(obj)
|
tool.Ifc.edit(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user