1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-30 23:19:49 +00:00

Fixed crash on Godot 3.2.beta6 when pressing the Edit Palette button

Oddly enough, this crash did not occur on Godot 3.1.2 or even Godot 3.2.beta5
This commit is contained in:
OverloadedOrama 2020-01-12 02:22:37 +02:00
parent d2bef26c0f
commit 340a885cd7

View file

@ -106,7 +106,7 @@ func create_new_palette(name : String, _from_palette : Palette) -> String: # Ret
return ""
func on_edit_palette() -> void:
var palette : Dictionary = Global.palettes[current_palette]
var palette : Palette = Global.palettes[current_palette]
var create_new_palette := true # Create new palette by default
if palette.editable: