-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnityMeshData.MorphTargetNormals[i] may need to check null on Import #682
Comments
I don't think this is needed, because we already check if there is a attribute for the morphtargetnormals. |
Ah, I tried to import ".glb" file changed suffix from ".vrm". It happened this error.
Refererencehttps://github.com/vrm-c/vrm-specification/blob/master/samples/Seed-san/vrm/Seed-san.vrm |
@FujiSunflower out of curiosity, where was that file created / what software was it created with? |
Maybe it was made by UniVRM as Refererence's url. I re-tested by UniVRM. I found the file uses Sparse Accessor. |
Thank you! I believe the file is perfectly valid, it's just unusual that some blend shapes include normals and others not, so was curious where it comes from / what the reasoning is. |
Problem
UnityMeshData.MorphTargetNormals[i] may need to check null on import.
UnityGLTF/Runtime/Scripts/SceneImporter/ImporterMeshes.cs
Line 908 in d9ed104
References
It is because the array has null check on AddBlendShapesToMesh in ConstructUnityMesh.
UnityGLTF/Runtime/Scripts/SceneImporter/ImporterMeshes.cs
Line 554 in d9ed104
The text was updated successfully, but these errors were encountered: