diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-08 12:01:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-08 12:01:55 +0100 |
commit | 35da70f953f6eeba6ba7b13795029d7a134a61fd (patch) | |
tree | 3df0c2e7134bd862fd789df7e46a0f30bc3c2c61 | |
parent | 4ca33d318bcd3e691b1ad70649ddcdf7731f5559 (diff) | |
parent | 4ea5c1ff2a06e4426915c175f39262fc96fc2421 (diff) | |
download | redot-engine-35da70f953f6eeba6ba7b13795029d7a134a61fd.tar.gz |
Merge pull request #86933 from alessandrofama/drop-texture-scene-history
Fix 2D viewport texture drop issue with global history registration
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 7d61d734f5..945b026a21 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -5843,7 +5843,7 @@ void CanvasItemEditorViewport::_perform_drop_data() { Vector<String> error_files; EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton(); - undo_redo->create_action(TTR("Create Node")); + undo_redo->create_action_for_history(TTR("Create Node"), EditorNode::get_editor_data().get_current_edited_scene_history_id()); for (int i = 0; i < selected_files.size(); i++) { String path = selected_files[i]; |