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:
OverloadedOrama 2019-10-02 21:58:19 +03:00
parent be6f9121ed
commit eb29cd3268
5 changed files with 66 additions and 43 deletions

View file

@ -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()