mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Make translatable some undo/redo operations in the editor
This commit is contained in:
parent
a01dca79e2
commit
3ef8238c1c
17 changed files with 90 additions and 90 deletions
|
@ -3103,7 +3103,7 @@ void VisualScriptEditor::_comment_node_resized(const Vector2 &p_new_size, int p_
|
|||
|
||||
graph->set_block_minimum_size_adjust(true); //faster resize
|
||||
|
||||
undo_redo->create_action("Resize Comment", UndoRedo::MERGE_ENDS);
|
||||
undo_redo->create_action(TTR("Resize Comment"), UndoRedo::MERGE_ENDS);
|
||||
undo_redo->add_do_method(vsc.ptr(), "set_size", p_new_size / EDSCALE);
|
||||
undo_redo->add_undo_method(vsc.ptr(), "set_size", vsc->get_size());
|
||||
undo_redo->commit_action();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue