FlaShG / GitMerge-for-Unity

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

MergeActionDeleteGameObject doesn't work properly #33

Closed FlaShG closed 9 years ago

FlaShG commented 9 years ago

If "they" deleted a GameObject, the resulting MergeAction doesn't work properly.

The MergeAction creates a copy of the GameObject. If the GO gets deleted and recreated, that copy is used to reinstantiate the original. The id of the copy is 0, and the id of the reinstantiated original seems to be -1.

FlaShG commented 9 years ago

This MergeAction now simply sets the active state and the HideFlags of "our" GameObject.