diff options
author | kobewi <kobewi4e@gmail.com> | 2021-01-03 18:12:00 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-01-03 18:12:00 +0100 |
commit | a22b2f86e70d37356fda7966e50cecf279f7d310 (patch) | |
tree | a92d71b1eeea0626de138b846f70dea871fdaa16 /editor/editor_properties.cpp | |
parent | 950dedbb6858458b5944523bf806e35eb4d6a5d8 (diff) |
Don't emit changed signal on Color Picker close
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r-- | editor/editor_properties.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 690808ddac..90c7a4d1e9 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2144,10 +2144,6 @@ void EditorPropertyColor::_color_changed(const Color &p_color) { emit_changed(get_edited_property(), p_color, "", true); } -void EditorPropertyColor::_popup_closed() { - emit_changed(get_edited_property(), picker->get_pick_color(), "", false); -} - void EditorPropertyColor::_picker_created() { // get default color picker mode from editor settings int default_color_mode = EDITOR_GET("interface/inspector/default_color_picker_mode"); @@ -2191,7 +2187,6 @@ EditorPropertyColor::EditorPropertyColor() { add_child(picker); picker->set_flat(true); picker->connect("color_changed", callable_mp(this, &EditorPropertyColor::_color_changed)); - picker->connect("popup_closed", callable_mp(this, &EditorPropertyColor::_popup_closed)); picker->connect("picker_created", callable_mp(this, &EditorPropertyColor::_picker_created)); } |