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:
Diffstat (limited to 'archipack/archipack_manipulator.py')
-rw-r--r--archipack/archipack_manipulator.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/archipack/archipack_manipulator.py b/archipack/archipack_manipulator.py
index fb454f69..f1d91cad 100644
--- a/archipack/archipack_manipulator.py
+++ b/archipack/archipack_manipulator.py
@@ -112,6 +112,12 @@ class ArchipackActiveManip:
# reference to object manipulable instance
self.manipulable = None
+ def is_snapping(self, ctx):
+ """
+ Check if snap is active
+ """
+ return ctx.active_object and ctx.active_object.name.startswith("Archipack_")
+
@property
def dirty(self):
"""
@@ -122,7 +128,8 @@ class ArchipackActiveManip:
return (
self.manipulable is None or
o is None or
- not o.select_get()
+ # The object is not selected and snap is not active
+ not (self.is_snapping(bpy.context) or o.select_get())
)
def exit(self):