[Bf-extensions-cvs] [32b5de09] master: NP Station cleanup, better angle error check
NBurn
noreply at git.blender.org
Sat Sep 30 01:21:36 CEST 2017
Commit: 32b5de09b0b5509e634fc382d425f7aa6b7470c1
Author: NBurn
Date: Fri Sep 29 19:21:22 2017 -0400
Branches: master
https://developer.blender.org/rBAC32b5de09b0b5509e634fc382d425f7aa6b7470c1
NP Station cleanup, better angle error check
===================================================================
M np_station/np_point_distance.py
===================================================================
diff --git a/np_station/np_point_distance.py b/np_station/np_point_distance.py
index eeae8cf9..13e45e42 100644
--- a/np_station/np_point_distance.py
+++ b/np_station/np_point_distance.py
@@ -645,8 +645,8 @@ def draw_callback_px_TRANS(self, context):
'''
goldvec1 = mathutils.Vector((1.0 , 0.0))
goldvec2 = endloc2d - startloc2d
- if goldvec1.length != 0.0 and goldvec2.length != 0.0:
- ang = goldvec1.angle_signed(goldvec2)
+ ang = goldvec1.angle_signed(goldvec2, None)
+ if ang is not None:
coy = round(cos(ang), 8)
cox = round(sin(ang), 8)
goldtick = [[-cox, -coy], [0, 0], [cox, coy]]
More information about the Bf-extensions-cvs
mailing list