Browse Source

Fix Empty mesh serialization

sebavan 4 years ago
parent
commit
f8d2366907
1 changed files with 1 additions and 1 deletions
  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;