mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix unchecking theme overrides not creating an undo action
This commit is contained in:
@@ -2645,7 +2645,7 @@ void EditorPropertyColor::_color_changed(const Color &p_color) {
|
||||
}
|
||||
|
||||
void EditorPropertyColor::_popup_closed() {
|
||||
get_edited_object()->set(get_edited_property(), last_color);
|
||||
get_edited_object()->set(get_edited_property(), was_checked ? Variant(last_color) : Variant());
|
||||
if (!picker->get_pick_color().is_equal_approx(last_color)) {
|
||||
emit_changed(get_edited_property(), picker->get_pick_color(), "", false);
|
||||
}
|
||||
@@ -2653,6 +2653,7 @@ void EditorPropertyColor::_popup_closed() {
|
||||
|
||||
void EditorPropertyColor::_picker_opening() {
|
||||
last_color = picker->get_pick_color();
|
||||
was_checked = !is_checkable() || is_checked();
|
||||
}
|
||||
|
||||
void EditorPropertyColor::_notification(int p_what) {
|
||||
|
||||
Reference in New Issue
Block a user