Fix T52545: Have MeasureIt check for custom layers
This commit is contained in:
parent
ce7685695e
commit
8ca82b7d94
Notes:
blender-bot
2023-02-14 19:36:32 +01:00
Referenced by issue #54585, Measureit 1.7.0 in Blender2.79b not shown when in "/" (local) mode Referenced by issue #52545, Measureit Addon does not seem to produce simple measurement from point to point in edit mode
|
@ -2013,9 +2013,14 @@ def draw_main(context):
|
|||
scene = bpy.context.scene
|
||||
# Get visible layers
|
||||
layers = []
|
||||
for x in range(0, 20):
|
||||
if bpy.context.scene.layers[x] is True:
|
||||
layers.extend([x])
|
||||
if bpy.context.space_data.lock_camera_and_layers is True:
|
||||
for x in range(0, 20):
|
||||
if bpy.context.scene.layers[x] is True:
|
||||
layers.extend([x])
|
||||
else:
|
||||
for x in range(20):
|
||||
if bpy.context.space_data.layers[x] is True:
|
||||
layers.extend([x])
|
||||
|
||||
# Display selected or all
|
||||
if scene.measureit_gl_ghost is False:
|
||||
|
|
Loading…
Reference in New Issue