[Bf-extensions-cvs] [02bf7cab] master: Archipack: bugfix disable manipulators when object is not selected
Stephen Leger
noreply at git.blender.org
Thu Apr 23 14:49:29 CEST 2020
Commit: 02bf7cab334b8263802df546c2d1115ca11ce48c
Author: Stephen Leger
Date: Thu Apr 23 14:48:51 2020 +0200
Branches: master
https://developer.blender.org/rBA02bf7cab334b8263802df546c2d1115ca11ce48c
Archipack: bugfix disable manipulators when object is not selected
===================================================================
M archipack/archipack_manipulator.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list