mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
set_objects_selection to set selection only if active_object is not None
It was creating errors if you'd try to add angle annotation without having any objects active.
This commit is contained in:
@@ -357,7 +357,8 @@ class Blender:
|
|||||||
for obj in selected_objects:
|
for obj in selected_objects:
|
||||||
obj.select_set(True)
|
obj.select_set(True)
|
||||||
context.view_layer.objects.active = active_object
|
context.view_layer.objects.active = active_object
|
||||||
active_object.select_set(True)
|
if active_object:
|
||||||
|
active_object.select_set(True)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def enum_property_has_valid_index(cls, props, prop_name, enum_items):
|
def enum_property_has_valid_index(cls, props, prop_name, enum_items):
|
||||||
|
|||||||
Reference in New Issue
Block a user