Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.3
Issue ID
1092209
Regression
No
[Terrain] Lingering ref to Terrain Layer after deleting it from disk
Reference to TerrainLayer exists after deleting the Terrain Layer from project/disk
Repro:
1. Create/open project in 2018.3.0b6
2. Create/open scene
3. Create/select Terrain
4. Select the Paint Texture Tool
5. Add a new Terrain Layer
6. Paint on Terrain using that Terrain Layer
7. Select Terrain Layer in the Project window
8. Delete it
9. Select Terrain again
10. Select Raise/Lower Height tool and paint with that on the Terrain
11. "Fixed" upon saving, though the null ref terrain layer still shows up in the Inspector GUI for Terrain
Errors in Console:
1. "NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Experimental.TerrainAPI.PaintTextureTool.DrawFoldoutEditor (UnityEditor.Editor editor, System.Int32 controlId, System.Boolean& visible) (at C:/buildslave/unity/build/Modules/TerrainEditor/PaintTools/PaintTextureTool.cs:73)
UnityEditor.Experimental.TerrainAPI.PaintTextureTool.OnInspectorGUI (UnityEngine.Terrain terrain, UnityEditor.Experimental.TerrainAPI.IOnInspectorGUI editContext) (at C:/buildslave/unity/build/Modules/TerrainEditor/PaintTools/PaintTextureTool.cs:150)
UnityEditor.TerrainInspector.ShowPaint () (at C:/buildslave/unity/build/Modules/TerrainEditor/TerrainInspector.cs:1458)
UnityEditor.TerrainInspector.OnInspectorGUI () (at C:/buildslave/unity/build/Modules/TerrainEditor/TerrainInspector.cs:1813)
UnityEditor.InspectorWindow.DoOnInspectorGUI (System.Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, System.Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1598)
UnityEditor.PopupCallbackInfo:SetEnumValueDelegate(Object, String[], Int32)"
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
theHost
Jun 21, 2019 12:26
Hello, this is still an issue in 2019.1.6f1