fix T53766: MeasureIt measurements not appearing on all layers an object

exists on
This commit is contained in:
Philipp Oeser 2018-01-25 19:57:24 +01:00
parent f12892eada
commit dc6704ab42
Notes: blender-bot 2023-02-14 19:32:11 +01:00
Referenced by issue blender/blender#54255, 2.79b release
Referenced by issue #54585, Measureit 1.7.0 in Blender2.79b not shown when in "/" (local) mode
Referenced by issue #53766, MeasureIt measurements do not appear on all layers an object exists on
Referenced by issue #53684, 2.79a release - addons
1 changed files with 3 additions and 4 deletions

View File

@ -2038,10 +2038,9 @@ def draw_main(context):
if 'MeasureGenerator' in myobj:
# verify visible layer
for x in range(0, 20):
if myobj.layers[x] is True:
if x in layers:
op = myobj.MeasureGenerator[0]
draw_segments(context, myobj, op, region, rv3d)
if myobj.layers[x] is True and x in layers:
op = myobj.MeasureGenerator[0]
draw_segments(context, myobj, op, region, rv3d)
break
# ---------------------------------------
# Generate all OpenGL calls for debug