Search Issue Tracker
Fixed in 5.0.0
Votes
0
Found in [Package]
4.4.0
Issue ID
1284735
Regression
Yes
[ProBuilder] NullReferenceException thrown when Redo operation is performed with Smooth Group Editor window
On performing Undo and Redo operation with the Smooth Group Editor window then it causes the editor to throw NullReferenceException, Refer attached video.
Steps to repro:
1. Create a new project.
2. Window > Package Manager > ProBuilder > Install
3. Create a new shape and select it
4. ProBuilder window > Smooth Group Editor window > Change the properties
5. Edit > Undo set Smoothing Group > Undo Create Shape
6. Edit > Redo Create Object
Actual Result:
NullReferenceException is thrown on performing Undo and Redo operation with Smooth Group Editor window
Expected Result:
Undo and Redo operation is performed gracefully
Occurring on:
2021.1.0a1, 2020.2.0b7 with package version 4.4.0
Working fine on:
2020.2.0b7 with package version 4.3.1
Environment:
Occurring only on Windows 10
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ProBuilder.SmoothGroupEditor+SmoothGroupData.RebuildNormalsMesh (UnityEngine.ProBuilder.ProBuilderMesh pb) (at Library/PackageCache/com.unity.probuilder@4.4.0/Editor/EditorCore/SmoothGroupEditor.cs:108)
UnityEditor.ProBuilder.SmoothGroupEditor+SmoothGroupData.Rebuild (UnityEngine.ProBuilder.ProBuilderMesh pb) (at Library/PackageCache/com.unity.probuilder@4.4.0/Editor/EditorCore/SmoothGroupEditor.cs:54)
UnityEditor.ProBuilder.SmoothGroupEditor+SmoothGroupData..ctor (UnityEngine.ProBuilder.ProBuilderMesh pb) (at Library/PackageCache/com.unity.probuilder@4.4.0/Editor/EditorCore/SmoothGroupEditor.cs:46)
UnityEditor.ProBuilder.SmoothGroupEditor.OnSelectionChanged () (at Library/PackageCache/com.unity.probuilder@4.4.0/Editor/EditorCore/SmoothGroupEditor.cs:394)
UnityEditor.ProBuilder.MeshSelection.OnObjectSelectionChanged () (at Library/PackageCache/com.unity.probuilder@4.4.0/Editor/EditorCore/MeshSelection.cs:200)
UnityEditor.Selection.Internal_CallSelectionChanged () (at <859685c8158c480a8d135de9619162c9>:0)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()
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
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
- Last segment of a Sprite Shape Spline is affected by other segments' Sprite Variant change when no edge Sprite is selected
Resolution Note (fix version 5.0.0):
https://github.com/Unity-Technologies/com.unity.probuilder/pull/344