Преглед изворни кода

source.metadata can be null when cloning.

Brian Zinn пре 7 година
родитељ
комит
cc42d0db42
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Mesh/babylon.mesh.ts

+ 1 - 1
src/Mesh/babylon.mesh.ts

@@ -189,7 +189,7 @@
                 Tools.DeepCopy(source, this, ["name", "material", "skeleton", "instances", "parent", "uniqueId", "source", "metadata"], ["_poseMatrix", "_source"]);
 
                 // Metadata
-                if (source.metadata.clone) {
+                if (source.metadata && source.metadata.clone) {
                     this.metadata = source.metadata.clone();
                  } else {
                     this.metadata = source.metadata;