Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Leger <stephen@3dservices.ch>2020-04-23 15:48:51 +0300
committerStephen Leger <stephen@3dservices.ch>2020-04-23 15:48:51 +0300
commit02bf7cab334b8263802df546c2d1115ca11ce48c (patch)
tree9536fa7ff25184ded5f6a7f2fe6cc50b28c19803
parent815babdb620ccb8ba90e31aa8dce1b0ec44578c8 (diff)
Archipack: bugfix disable manipulators when object is not selected
-rw-r--r--archipack/archipack_manipulator.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archipack/archipack_manipulator.py b/archipack/archipack_manipulator.py
index 0eba8aba..fb454f69 100644
--- a/archipack/archipack_manipulator.py
+++ b/archipack/archipack_manipulator.py
@@ -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