Fix #2579. Bug where measurements were considered to be greasepencil strokes when drawing walls.

This commit is contained in:
Dion Moult
2023-01-27 08:32:25 +11:00
parent 9185a51234
commit 41fdd77bfa
@@ -500,6 +500,7 @@ class DumbWallGenerator:
return (
bpy.context.scene.grease_pencil
and len(bpy.context.scene.grease_pencil.layers) == 1
and bpy.context.scene.grease_pencil.layers[0].info == "Note"
and bpy.context.scene.grease_pencil.layers[0].active_frame.strokes
)