mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Minor fix
This commit is contained in:
@@ -4378,9 +4378,10 @@ class UpdatePresentationLayer(bpy.types.Operator):
|
|||||||
index: bpy.props.IntProperty()
|
index: bpy.props.IntProperty()
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
pl = bpy.context.scene.BIMProperties.presentation_layers[self.index]
|
|
||||||
for obj in bpy.context.scene.objects:
|
for obj in bpy.context.scene.objects:
|
||||||
if obj.BIMObjectProperties.presentation_layer.name == pl.name:
|
if not obj.data or not hasattr(obj.data, "BIMMeshProperties"):
|
||||||
|
continue
|
||||||
|
if obj.data.BIMMeshProperties.presentation_layer_index == self.index:
|
||||||
set_status = obj.hide_get()
|
set_status = obj.hide_get()
|
||||||
obj.hide_set(not obj.hide_get())
|
obj.hide_set(not obj.hide_get())
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|||||||
Reference in New Issue
Block a user