Explorar o código

Fix Empty mesh serialization

sebavan %!s(int64=4) %!d(string=hai) anos
pai
achega
f8d2366907
Modificáronse 1 ficheiros con 1 adicións e 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;