Explorar el Código

Fix Empty mesh serialization

sebavan hace 5 años
padre
commit
f8d2366907
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Meshes/mesh.ts

+ 1 - 1
src/Meshes/mesh.ts

@@ -3061,7 +3061,7 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
         // Geometry
         serializationObject.isUnIndexed = this.isUnIndexed;
         var geometry = this._geometry;
-        if (geometry) {
+        if (geometry && this.subMeshes) {
             var geometryId = geometry.id;
             serializationObject.geometryId = geometryId;