You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One could argue that this isn't a bug. But it is entirely possible to get SkinnedSubGeometry with a ColorMaterial rather than a BitmapMaterial.
If that is the case, uv data may not be set in the geometry. If you play an animation, a crash happens on line 697:
v0 = _uvs[uint((index1 << 1) + 1)];
_uvs is null.
Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)
Which is the usecase where updateFaceTangents is called and uvs aren't present? That method should only be called when a normal map is used, for which uvs are required.
I got it to happen simply by attempting to play an animation. Not having uv data was a result of the collada model being flat shaded, not textured. To be clear, it did not have a normal map.
One could argue that this isn't a bug. But it is entirely possible to get SkinnedSubGeometry with a ColorMaterial rather than a BitmapMaterial.
If that is the case, uv data may not be set in the geometry. If you play an animation, a crash happens on line 697:
v0 = _uvs[uint((index1 << 1) + 1)];
_uvs is null.
Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)
The text was updated successfully, but these errors were encountered: