Turn Symmetry Guides visibility on and off if mirroring is enabled

Also fixed issue with "Show Guides" view menu option and having multiple projects with guides. Only think remaining is to make the Symmetry Guides look different than regular guides. Closes #133.
This commit is contained in:
OverloadedOrama 2020-07-16 05:05:40 +03:00
parent 9fa91ffd8e
commit a5a8bf1fe5
6 changed files with 26 additions and 2 deletions

View file

@ -126,7 +126,12 @@ func change_project() -> void:
for guide in Global.canvas.get_children():
if guide is Guide:
if guide in guides:
guide.visible = true
guide.visible = Global.show_guides
if guide is SymmetryGuide:
if guide.type == Guide.Types.HORIZONTAL:
guide.visible = Global.show_x_symmetry_axis and Global.show_guides
else:
guide.visible = Global.show_y_symmetry_axis and Global.show_guides
else:
guide.visible = false