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:
authormano-wii <germano.costa@ig.com.br>2019-01-01 03:59:03 +0300
committermano-wii <germano.costa@ig.com.br>2019-01-02 14:32:23 +0300
commitcbf69932d32612bdf8c5b2557c9affdd4003770c (patch)
tree028aa2ba5e7bec3f53efff8bdf3e0a9b7f70126e /mesh_snap_utilities_line
parenteaba0c54e1f02da25d9551f12616b28b32b10a01 (diff)
mesh_snap_utilities_line: Fix F8 constraint
Diffstat (limited to 'mesh_snap_utilities_line')
-rw-r--r--mesh_snap_utilities_line/ops_line.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesh_snap_utilities_line/ops_line.py b/mesh_snap_utilities_line/ops_line.py
index 56eee869..bcecb60f 100644
--- a/mesh_snap_utilities_line/ops_line.py
+++ b/mesh_snap_utilities_line/ops_line.py
@@ -346,10 +346,10 @@ class SnapUtilitiesLine(bpy.types.Operator):
location = intersect_point_line(lloc, orig, (orig + view_vec))
vec = (location[0] - lloc)
ax, ay, az = abs(vec.x), abs(vec.y), abs(vec.z)
- vec.x = ax > ay > az or ax > az > ay
- vec.y = ay > ax > az or ay > az > ax
- vec.z = az > ay > ax or az > ax > ay
- if not (vec.x and vec.y and vec.z):
+ vec.x = ax > ay and ax > az
+ vec.y = ay > ax and ay > az
+ vec.z = az > ay and az > ax
+ if not (vec.x or vec.y or vec.z):
self.vector_constrain = None
else:
vc = lloc + vec