[6e469175] master: MeasureIt: Fix wrong location for parented objects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[6e469175] master: MeasureIt: Fix wrong location for parented objects

Sebastian Witt
Commit: 6e469175870222d724be17c9f14590a07e1e7e45
Author: Stephen Leger
Date:   Sat Aug 12 16:29:07 2017 -0400
Branches: master
https://developer.blender.org/rBA6e469175870222d724be17c9f14590a07e1e7e45

MeasureIt: Fix wrong location for parented objects

Prevents objects indexes from being drawn in wrong location when
objects are parented to other objects

===================================================================

M measureit/measureit_geometry.py

===================================================================

diff --git a/measureit/measureit_geometry.py b/measureit/measureit_geometry.py
index 8a23d817..8b0b8371 100644
--- a/measureit/measureit_geometry.py
+++ b/measureit/measureit_geometry.py
@@ -1009,7 +1009,7 @@ def draw_object(context, myobj, region, rv3d):
         if scene.measureit_debug_select is True:
             if objs[o].select is False:
                 continue
-        a_p1 = objs[o].location
+        a_p1 = Vector(get_location(objs[o]))
         # colour
         bgl.glColor4f(rgb[0], rgb[1], rgb[2], rgb[3])
         # Text

_______________________________________________
Bf-extensions-cvs mailing list
[hidden email]
https://lists.blender.org/mailman/listinfo/bf-extensions-cvs
Loading...