[Bf-extensions-cvs] [82b6f861] master: NP Station: faster type check
NBurn
noreply at git.blender.org
Sat Sep 30 21:54:07 CEST 2017
Commit: 82b6f8612749514da120282d790ac94d47cefeb0
Author: NBurn
Date: Sat Sep 30 15:53:52 2017 -0400
Branches: master
https://developer.blender.org/rBAC82b6f8612749514da120282d790ac94d47cefeb0
NP Station: faster type check
===================================================================
M np_station/utils_graphics.py
===================================================================
diff --git a/np_station/utils_graphics.py b/np_station/utils_graphics.py
index a8796048..e71160a4 100644
--- a/np_station/utils_graphics.py
+++ b/np_station/utils_graphics.py
@@ -489,10 +489,10 @@ def display_distance_between_two_points(region, rv3d, p1_3d, p2_3d):
scale_dist = addon_settings_graph('scale_dist')
suffix_dist = addon_settings_graph('suffix_dist')
- if type(p1_3d) != Vector:
+ if type(p1_3d) is not Vector:
p1_3d = Vector(p1_3d)
- if type(p2_3d) != Vector:
+ if type(p2_3d) is not Vector:
p2_3d = Vector(p2_3d)
More information about the Bf-extensions-cvs
mailing list