FBXLoader: Find a bug in the code that leads to load fail.

Description of the problem

Find a little bug in FBXLoader. See the code in the following picture:
image

when the “children” is undefined, the “fileName” is undefined, too.
and the below code doesn’t consider this condition and call fileName.indexOf.
It will result a error and load fail.
need add:
if (fileName !== undefined && (...))

Three.js version
  • Dev
  • r89
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

2 thoughts on “FBXLoader: Find a bug in the code that leads to load fail.

  1. @nNightKil your testError.fbx doesn’t have any textures so the loadTexture function never gets called.

    Anyway, the issue should be fixed in #13228

Comments are closed.