Skip to content

Commit

Permalink
Merge pull request #86933 from alessandrofama/drop-texture-scene-history
Browse files Browse the repository at this point in the history
Fix 2D viewport texture drop issue with global history registration
  • Loading branch information
akien-mga committed Jan 8, 2024
2 parents 4ca33d3 + 4ea5c1f commit 35da70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 35da70f

Please sign in to comment.