When toggling openings, voids are wireframe.

Discussed: https://community.osarch.org/discussion/2592/any-objections-of-changing-voids-to-wireframe-when-you-toggle-openings
Also, if you keep hitting tab, it cycles in and out of edit mode.
This commit is contained in:
Ryan Schultz
2024-12-07 15:31:37 -06:00
parent ad35ceef2a
commit 586f9be077
3 changed files with 11 additions and 1 deletions
@@ -2008,6 +2008,9 @@ class OverrideModeSetObject(bpy.types.Operator, tool.Ifc.Operator):
elif tool.Geometry.is_representation_item(context.active_object):
self.edit_representation_item(context.active_object)
tool.Root.reload_item_decorator()
#So you can keep hitting tab to cycle out of edit mode
context.active_object.select_set(False)
bpy.context.view_layer.objects.active = None
return {"FINISHED"}
objs = context.selected_objects or [context.active_object]
@@ -2645,6 +2648,12 @@ class ImportRepresentationItems(bpy.types.Operator, tool.Ifc.Operator):
if not tool.Geometry.is_movable(item):
tool.Geometry.lock_object(item_obj)
if "IfcOpeningElement" in obj.name:
item_obj.display_type = 'WIRE'
item_obj.select_set(True)#so you can quickly hit tab again, for edit mode
context.view_layer.objects.active = item_obj
tool.Root.reload_item_decorator()
@@ -821,6 +821,7 @@ class ShowOpenings(Operator, tool.Ifc.Operator):
for opening in openings:
new = props.openings.add()
new.obj = opening
opening.display_type = 'WIRE'
DecorationsHandler.install(bpy.context)
return {"FINISHED"}