Browse Source

Merge pull request #86933 from alessandrofama/drop-texture-scene-history

Fix 2D viewport texture drop issue with global history registration
Rémi Verschelde 1 year ago
parent
commit
35da70f953
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/canvas_item_editor_plugin.cpp

+ 1 - 1
editor/plugins/canvas_item_editor_plugin.cpp

@@ -5843,7 +5843,7 @@ void CanvasItemEditorViewport::_perform_drop_data() {
 	Vector<String> error_files;
 	Vector<String> error_files;
 
 
 	EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
 	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++) {
 	for (int i = 0; i < selected_files.size(); i++) {
 		String path = selected_files[i];
 		String path = selected_files[i];