|
@@ -705,6 +705,12 @@ def execute_tree(nodes, base_tree, context, error_popups = False):
|
|
|
# this will PASS the error! that's better for UI/UX
|
|
# this will PASS the error! that's better for UI/UX
|
|
|
finally:
|
|
finally:
|
|
|
context.view_layer.objects.active = active
|
|
context.view_layer.objects.active = active
|
|
|
|
|
+ # clear the selection first.
|
|
|
|
|
+ for ob in context.selected_objects:
|
|
|
|
|
+ try:
|
|
|
|
|
+ ob.select_set(False)
|
|
|
|
|
+ except RuntimeError: # it isn't in the view layer
|
|
|
|
|
+ pass
|
|
|
for ob in select_me:
|
|
for ob in select_me:
|
|
|
try:
|
|
try:
|
|
|
ob.select_set(True)
|
|
ob.select_set(True)
|