GitMerge-for-Unity icon indicating copy to clipboard operation
GitMerge-for-Unity copied to clipboard

"Can't Destroy Transform Component" In MergeManagerScene.InitializeMerge()

Open randomPoison opened this issue 10 years ago • 4 comments

When I try to merge a scene, I get a bunch of errors that look like the following:

Can't destroy Transform component of 'polySurface10'. If you want to destroy the game object, please call 'Destroy' on the game object instead. Destroying the transform component is not allowed.
UnityEditor.EditorApplication:OpenScene(String)
GitMerge.MergeManagerScene:InitializeMerge() (at Assets/GitMerge/Editor/MergeManagerScene.cs:25)
GitMerge.GitMergeWindow:OnGUISceneTab() (at Assets/GitMerge/Editor/GitMergeWindow.cs:128)
GitMerge.GitMergeWindow:OnGUI() (at Assets/GitMerge/Editor/GitMergeWindow.cs:104)
UnityEditor.DockArea:OnGUI()

I tried looking into why this is happening, but I can't find anyone saying why EditorApplication.OpenScene() would cause these errors. Also, these errors also don't prevent the merge from taking place, though they might be indicative of some other problems.

randomPoison avatar Feb 10 '15 20:02 randomPoison

This sounds like a Unity bug to me. Which version are you using? Since I never ran into this, can you break down the scene to a small, reproducible example?

FlaShG avatar Feb 10 '15 20:02 FlaShG

I'm running 4.6.2. I'll see about finding a trivial repro case.

randomPoison avatar Feb 10 '15 21:02 randomPoison

Just tried the recent tool. This is still happening. Along with Can't remove (Component) because (Script) depends on it. This repo looks updated but is this tool even working?

TheXRMonk avatar Aug 20 '20 09:08 TheXRMonk

@VirsabiMunk It's an open source tool that happily accepts contributions. I can spend some time for maintaining, but I currently don't have the time to bug hunting. I know of quite a few people who are using the tool just fine despite its present issues, which need some outside help to be tackled.

FlaShG avatar Aug 20 '20 13:08 FlaShG