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:
authorBart Crouch <bartius.crouch@gmail.com>2014-08-06 17:54:23 +0400
committerBart Crouch <bartius.crouch@gmail.com>2014-08-06 17:54:23 +0400
commit6b57e3ed43f7068e1b1dda3d75b32edf0ac51a68 (patch)
tree36422846b7673e6e862efc26f918c60385f7ee47 /mesh_looptools.py
parent80c798648584776bbcc6a79d25de15722e4b98ba (diff)
Fix T39979
Checking for zero-length vector wasn't sufficiently robust. Could result in NaNs being assigned to vertex coordinates.
Diffstat (limited to 'mesh_looptools.py')
-rw-r--r--mesh_looptools.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/mesh_looptools.py b/mesh_looptools.py
index a1e52a12..b061f6ea 100644
--- a/mesh_looptools.py
+++ b/mesh_looptools.py
@@ -19,8 +19,8 @@
bl_info = {
"name": "LoopTools",
"author": "Bart Crouch",
- "version": (4, 6, 1),
- "blender": (2, 69, 3),
+ "version": (4, 6, 2),
+ "blender": (2, 71, 3),
"location": "View3D > Toolbar and View3D > Specials (W-key)",
"warning": "",
"description": "Mesh modelling toolkit. Several tools to aid modelling",
@@ -1686,7 +1686,7 @@ def circle_3d_to_2d(bm_mod, loop, com, normal):
# calculate two vectors (p and q) along the plane
m = mathutils.Vector((normal[0] + 1.0, normal[1], normal[2]))
p = m - (m.dot(normal) * normal)
- if p.dot(p) == 0.0:
+ if p.dot(p) < 1e-6:
m = mathutils.Vector((normal[0], normal[1] + 1.0, normal[2]))
p = m - (m.dot(normal) * normal)
q = p.cross(normal)
@@ -4093,7 +4093,6 @@ class Space(bpy.types.Operator):
# saving cache for faster execution next time
if not cached:
- print(loops)
cache_write("Space", object, bm, self.input, False, False, loops,
derived, mapping)