Skip to content

Commit

Permalink
Fixed moving newly created objects
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar1jn committed Mar 18, 2022
1 parent 2bf8dae commit 0cd6292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0cd6292

Please sign in to comment.