1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix LightenDarken issue where it did not remember some options when switching tools

This commit is contained in:
Manolis Papadeas 2020-11-03 00:43:48 +02:00
parent ebb6d74d9f
commit 922c48f50e

View file

@ -102,7 +102,9 @@ func get_config() -> Dictionary:
func set_config(config : Dictionary) -> void: func set_config(config : Dictionary) -> void:
.set_config(config) .set_config(config)
_shading_mode = config.get("shading_mode", _shading_mode) _shading_mode = config.get("shading_mode", _shading_mode)
_drawer.color_op.shading_mode = _shading_mode
_mode = config.get("mode", _mode) _mode = config.get("mode", _mode)
_drawer.color_op.lighten_or_darken = _mode
_amount = config.get("amount", _amount) _amount = config.get("amount", _amount)
_hue_amount = config.get("hue_amount", _hue_amount) _hue_amount = config.get("hue_amount", _hue_amount)
_sat_amount = config.get("sat_amount", _sat_amount) _sat_amount = config.get("sat_amount", _sat_amount)