mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 20:54:44 -04:00
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:
parent
9fa91ffd8e
commit
a5a8bf1fe5
6 changed files with 26 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue