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

Fix 2D viewport texture drop issue with global history registration
This commit is contained in:
Rémi Verschelde 2024-01-08 12:01:55 +01:00
commit 35da70f953
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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];