You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #31255 from iwek7/colorPickerUndo
Adds support for undo/redo for in-editor color picker
This commit is contained in:
@@ -1621,7 +1621,9 @@ void ScriptTextEditor::_color_changed(const Color &p_color) {
|
|||||||
line_with_replaced_args = line_with_replaced_args.insert(color_args_pos, new_args);
|
line_with_replaced_args = line_with_replaced_args.insert(color_args_pos, new_args);
|
||||||
|
|
||||||
color_args = new_args;
|
color_args = new_args;
|
||||||
|
code_editor->get_text_edit()->begin_complex_operation();
|
||||||
code_editor->get_text_edit()->set_line(color_position.x, line_with_replaced_args);
|
code_editor->get_text_edit()->set_line(color_position.x, line_with_replaced_args);
|
||||||
|
code_editor->get_text_edit()->end_complex_operation();
|
||||||
code_editor->get_text_edit()->update();
|
code_editor->get_text_edit()->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user