Fixed gradient editor (Cursors not updtaed when color was modified)

This commit is contained in:
RodZill4 2019-10-29 22:10:54 +01:00
parent 4c2274104b
commit 8b9084f72b

View File

@ -39,6 +39,7 @@ class GradientCursor:
func set_color(c) -> void: func set_color(c) -> void:
color = c color = c
get_parent().update_value() get_parent().update_value()
update()
static func sort(a, b) -> bool: static func sort(a, b) -> bool:
return a.get_position() < b.get_position() return a.get_position() < b.get_position()