@@ -1766,7 +1766,7 @@ module BABYLON.GLTF2 {
}
- else {
+ else if (mesh.material) {
remaining++;
@@ -1788,7 +1788,7 @@ module BABYLON.GLTF2 {
- else if (mesh.material !== null) {
this._compileMaterialAsync(mesh.material, mesh, () => {
if (--remaining === 0) {
onSuccess();
@@ -39,7 +39,7 @@ if (BABYLON.Engine.isSupported()) {
if (plugin.name === "gltf" && plugin instanceof BABYLON.GLTFFileLoader) {
plugin.animationStartMode = BABYLON.GLTFLoaderAnimationStartMode.ALL;
- // plugin.compileMaterials = true;
+ plugin.compileMaterials = true;
});