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>2017-08-03 16:59:40 +0300
committerStephen Leger <stephen@3dservices.ch>2017-08-09 23:37:00 +0300
commit92301276de6919b27b79d548ea69cd0b07ec0549 (patch)
tree6ea2ea916b4f374d37cd59d540d55b33cbe891e9 /archipack/archipack_snap.py
parent948149cefc5501497b6500b6436f86418eb08367 (diff)
archipack: fix left select issue in draw window/door and allow selecting preset while drawing
Diffstat (limited to 'archipack/archipack_snap.py')
-rw-r--r--archipack/archipack_snap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archipack/archipack_snap.py b/archipack/archipack_snap.py
index eb3898d3..92e09595 100644
--- a/archipack/archipack_snap.py
+++ b/archipack/archipack_snap.py
@@ -142,10 +142,11 @@ def snap_point(takeloc=None,
# for ArchipackSnapBase to be able to handle both modes
# must implements corresponding helper create and delete actions
SnapStore.mode = mode
- res = bpy.ops.archipack.snap('INVOKE_DEFAULT')
+ bpy.ops.archipack.snap('INVOKE_DEFAULT')
# return helper so we are able to move it "live"
return SnapStore.helper
+
class ArchipackSnapBase():
"""
Helper class for snap Operators
@@ -273,7 +274,7 @@ class ARCHIPACK_OT_snap(ArchipackSnapBase, Operator):
# NOTE: this part only run after transform LEFTMOUSE RELEASE
# or with ESC and RIGHTMOUSE
if event.type not in {'ESC', 'RIGHTMOUSE', 'LEFTMOUSE', 'MOUSEMOVE'}:
- print("Snap.modal skip unknown event %s %s" % (event.type, event.value))
+ # print("Snap.modal skip unknown event %s %s" % (event.type, event.value))
# self.report({'WARNING'}, "ARCHIPACK_OT_snap unknown event")
return{'PASS_THROUGH'}
if event.type in ('ESC', 'RIGHTMOUSE'):