Skip to content

Commit

Permalink
Merge pull request #794 from mandar1jn/move-new-objects-fix
Browse files Browse the repository at this point in the history
Fixed moving newly created objects
  • Loading branch information
Grossley authored Mar 18, 2022
2 parents 2bf8dae + 0cd6292 commit 8c8674d
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 8c8674d

Please sign in to comment.