FlaShG / GitMerge-for-Unity

Unity plugin for merging sceneand prefabs files when using git.
GNU General Public License v2.0
197 stars 27 forks source link

Duplicates objects #63

Closed ariel7590 closed 2 years ago

ariel7590 commented 2 years ago

Every time I use this tool, it always duplicates objects in my scene and then I have to delete them manually.

FlaShG commented 2 years ago

What Unity version are you using? Do you have any error messages?

ariel7590 commented 2 years ago

I'm using version 2020.3.30f1 I don't have any error messages.

FlaShG commented 2 years ago

Tried it with 2020.3.17f1, was unable to reproduce. You're trying to merge a scene? Have you tried setting up a simple example scene for merging - and does the problem persist for that scene?

ariel7590 commented 2 years ago

Yes, I'm trying to merge a scene. Actually I tried just now setting a simple example and it worked without any problems for this example. But for my main project it duplicated the objects that on the scene for some reason.

FlaShG commented 2 years ago

I can imagine some scripts executing in edit mode or some package automatically saving a scene under certain conditions. Try deleting objects in the problematic scene until the problems stops occurring, and check what object made the difference.

ariel7590 commented 2 years ago

I do use an autosave package that I found. It may have something with that problem.

FlaShG commented 2 years ago

That sounds very likely! I think this issue can be closed for now then.