mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:44:42 -04:00
Fixes #141
This commit will be reverted when the actual problem is fixed in Godot itself.
This commit is contained in:
parent
79d3da8c50
commit
f8ee851a6f
2 changed files with 9 additions and 9 deletions
|
@ -29,7 +29,7 @@ func toDict() -> Dictionary:
|
|||
}
|
||||
return result
|
||||
|
||||
func fromDict(input_dict : Dictionary) -> PaletteColor:
|
||||
func fromDict(input_dict : Dictionary): # -> PaletteColor
|
||||
var result = get_script().new()
|
||||
|
||||
result.data = input_dict.data
|
||||
|
@ -37,8 +37,8 @@ func fromDict(input_dict : Dictionary) -> PaletteColor:
|
|||
|
||||
return result
|
||||
|
||||
func duplicate() -> PaletteColor:
|
||||
var copy : PaletteColor = get_script().new()
|
||||
func duplicate(): # -> PaletteColor
|
||||
var copy = get_script().new() # : PaletteColor
|
||||
copy.data = data
|
||||
copy.name = name
|
||||
return copy
|
||||
return copy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue