MeasureIt: Fix wrong location for parented objects

Prevents objects indexes from being drawn in wrong location when
objects are parented to other objects
This commit is contained in:
stephen leger 2017-08-12 16:29:07 -04:00 committed by NBurn
parent 6451d10ff4
commit 6e46917587
1 changed files with 1 additions and 1 deletions

View File

@ -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