Skip to content

Commit

Permalink
Merge pull request #31255 from iwek7/colorPickerUndo
Browse files Browse the repository at this point in the history
Adds support for undo/redo for in-editor color picker
  • Loading branch information
akien-mga committed Aug 10, 2019
2 parents 3c7327d + 7254284 commit 3418f76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/plugins/script_text_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

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()->end_complex_operation();
code_editor->get_text_edit()->update();
}

Expand Down

0 comments on commit 3418f76

Please sign in to comment.