From 0cd62921f65875e0b4402676034a7b9c02fa649e Mon Sep 17 00:00:00 2001 From: Mandar1jn Date: Fri, 18 Mar 2022 18:19:34 +0100 Subject: [PATCH] Fixed moving newly created objects --- UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs b/UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs index 9cba24655..22189f482 100644 --- a/UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs +++ b/UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs @@ -912,6 +912,7 @@ private void Canvas_Drop(object sender, DragEventArgs e) InstanceID = mainWindow.Data.GeneralInfo.LastObj++ }; room.GameObjects.Add(obj); + roomObjDict.TryAdd(obj.InstanceID, layer); if (layer != null) layer.InstancesData.Instances.Add(obj);