mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +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:
|
||||
obj.select_set(True)
|
||||
context.view_layer.objects.active = active_object
|
||||
active_object.select_set(True)
|
||||
if active_object:
|
||||
active_object.select_set(True)
|
||||
|
||||
@classmethod
|
||||
def enum_property_has_valid_index(cls, props, prop_name, enum_items):
|
||||
|
||||
Reference in New Issue
Block a user