mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Fixed issue where the size wouldn't change if the user modified only the width or the height
This commit is contained in:
parent
518ba2b176
commit
6dfa3ac9b7
|
@ -34,8 +34,10 @@ func _ready() -> void:
|
||||||
if layers.empty():
|
if layers.empty():
|
||||||
var sprite := Image.new()
|
var sprite := Image.new()
|
||||||
if Global.is_default_image:
|
if Global.is_default_image:
|
||||||
if Global.config_cache.has_section_key("preferences", "default_width") && Global.config_cache.has_section_key("preferences", "default_height"):
|
if Global.config_cache.has_section_key("preferences", "default_width"):
|
||||||
size = Vector2(Global.config_cache.get_value("preferences", "default_width"), Global.config_cache.get_value("preferences", "default_height"))
|
size.x = Global.config_cache.get_value("preferences", "default_width")
|
||||||
|
if Global.config_cache.has_section_key("preferences", "default_height"):
|
||||||
|
size.y = Global.config_cache.get_value("preferences", "default_height")
|
||||||
if Global.config_cache.has_section_key("preferences", "default_fill_color"):
|
if Global.config_cache.has_section_key("preferences", "default_fill_color"):
|
||||||
fill_color = Global.config_cache.get_value("preferences", "default_fill_color")
|
fill_color = Global.config_cache.get_value("preferences", "default_fill_color")
|
||||||
Global.is_default_image = !Global.is_default_image
|
Global.is_default_image = !Global.is_default_image
|
||||||
|
|
Loading…
Reference in a new issue