Explorar o código

Added else for if-else condition

Kacey Coley %!s(int64=7) %!d(string=hai) anos
pai
achega
ae293fa4e3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      serializers/src/glTF/2.0/babylon.glTFExporter.ts

+ 1 - 1
serializers/src/glTF/2.0/babylon.glTFExporter.ts

@@ -967,7 +967,7 @@ module BABYLON.GLTF2 {
                                 this.materials.push(material);
                                 materialIndex = this.materials.length - 1;
                             }
-                            if (babylonMaterial instanceof MultiMaterial) {
+                            else if (babylonMaterial instanceof MultiMaterial) {
                                 babylonMaterial = babylonMaterial.subMaterials[submesh.materialIndex];
                                 if (babylonMaterial) {
                                     materialIndex = this.babylonScene.materials.indexOf(babylonMaterial);