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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 5.0.0):
https://github.com/Unity-Technologies/com.unity.probuilder/pull/344