1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

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

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