Public Access
2
0

Make boundary active

This commit is contained in:
2026-04-23 21:39:43 -04:00
parent 5980dfc770
commit 1548ebf4ff
+6 -3
View File
@@ -120,10 +120,13 @@ def create_aligned_boundary_cube(bounds, parent=None, mode=None):
if parent: if parent:
obj.parent = parent obj.parent = parent
# QoL: wire display and auto-select for immediate modifier edits # QoL: deselect all, then select only the boundary for immediate modifier edits
obj.display_type = 'WIRE' bpy.ops.object.select_all(action='DESELECT')
# obj.display_type = 'WIRE'
obj.select_set(True) obj.select_set(True)
# Make it the active object
bpy.context.view_layer.objects.active = obj
return obj return obj
if __name__ == "__main__": if __name__ == "__main__":