GLTFSceneModelLoader - backfaces option throw undefined
if material in primitive.material is missing
#1458
Milestone
undefined
if material in primitive.material is missing
#1458
Describe the bug
In #1449 if GLTF material is undefined in line 523,
const backfaces
in line 537 throw anundefined
TypeError when it tries to accessdoubleSided
.To Reproduce
It’s possible that the GLTF model I’m using has a missing material, however, it was loaded correctly using 2.6.0-beta13
Current fix
Setting
param.backfaces
explicitly totrue
when loading the GLTF model inGLTFLoader.load
avoids the error. Even iftrue
should be the default value forctx.backfaces
.The text was updated successfully, but these errors were encountered: