mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
New feature to only apply section planes to specific objects
This commit is contained in:
@@ -1927,7 +1927,12 @@ class AddSectionPlane(bpy.types.Operator):
|
||||
material = bpy.data.materials.new('Section Override')
|
||||
material.use_nodes = True
|
||||
|
||||
for obj in bpy.context.visible_objects:
|
||||
if bpy.context.scene.BIMProperties.should_section_selected_objects:
|
||||
objects = bpy.context.selected_objects
|
||||
else:
|
||||
objects = bpy.context.visible_objects
|
||||
|
||||
for obj in objects:
|
||||
if not (obj.data \
|
||||
and hasattr(obj.data, 'materials') \
|
||||
and obj.data.materials \
|
||||
|
||||
Reference in New Issue
Block a user