Archipack: bugfix disable manipulators when object is not selected

This commit is contained in:
stephen leger 2020-04-23 14:48:51 +02:00
parent 815babdb62
commit 02bf7cab33
1 changed files with 3 additions and 2 deletions

View File

@ -118,9 +118,11 @@ class ArchipackActiveManip:
Check for manipulable validity
to disable modal when required
"""
o = bpy.data.objects.get(self.object_name)
return (
self.manipulable is None or
bpy.data.objects.find(self.object_name) < 0
o is None or
not o.select_get()
)
def exit(self):
@ -167,7 +169,6 @@ def check_stack(key):
# print("check_stack : key.dirty %s" % (key))
remove_manipulable(key)
return True
return False