Skip to content

Commit

Permalink
Archipack: bugfix disable manipulators when object is not selected
Browse files Browse the repository at this point in the history
  • Loading branch information
s-leger committed Apr 23, 2020
1 parent 815babd commit 02bf7ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions archipack/archipack_manipulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ def dirty(self):
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):
Expand Down Expand Up @@ -167,7 +169,6 @@ def check_stack(key):
# print("check_stack : key.dirty %s" % (key))
remove_manipulable(key)
return True

return False


Expand Down

0 comments on commit 02bf7ca

Please sign in to comment.