mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-08-11 18:44:43 -04:00
Brushes now get removed when opening a project, indicators for chosen sprites
- If you had custom brushes in your project and you opened a new one (from a .pxo file), the brushes would stack. Now, the previous brushes get removed. - Added arrow left and right indicators for the selected brushes.
This commit is contained in:
parent
be6f9121ed
commit
eb29cd3268
5 changed files with 66 additions and 43 deletions
|
@ -283,6 +283,9 @@ func _on_OpenSprite_file_selected(path) -> void:
|
|||
Global.right_color_picker.get_picker().add_preset(color)
|
||||
|
||||
#Load custom brushes
|
||||
Global.custom_brushes.clear()
|
||||
Global.remove_brush_buttons()
|
||||
|
||||
var brush_line := file.get_line()
|
||||
while brush_line == "/":
|
||||
var b_width := file.get_16()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue