Search Issue Tracker

Fixed in 5.0.X

Votes

0

Found in

5.0.0b12

Issue ID

647711

Regression

Yes

Null reference exception when clicking Fix Now on a material w/ cubemap

Asset Import

-

Steps to reproduce:
1. Download and import the assets user attached (https://dl.dropboxusercontent.com/u/4946575/CubemapNullRef.zip)
2. There is a material with a Skybox/cubemap shader and a cubemap (has a texture that contains alpha but is not RGBM (incompatible with HDR))
3. Add that cubemap to the material
4. Press "Fix now", observe errors:

NullReferenceException: Object reference not set to an instance of an object
UnityEditorInternal.InternalEditorUtility.FixHDRTexture (UnityEditor.MaterialProperty prop) (at C:/buildslave/unity/build/artifacts/generated/common/editor/InternalEditorUtility.gen.cs:97)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.