mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
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:
@@ -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"}
|
||||
|
||||
|
||||
+1
-1
Submodule src/svgfill updated: ff00026cd3...80155ec088
Reference in New Issue
Block a user