Browse Source

removed unwanted tag read

David Catuhe 6 years ago
parent
commit
c61f20612e
1 changed files with 0 additions and 9 deletions
  1. 0 9
      src/Meshes/transformNode.ts

+ 0 - 9
src/Meshes/transformNode.ts

@@ -1,6 +1,5 @@
 import { DeepImmutable } from "../types";
 import { serialize, serializeAsVector3, serializeAsQuaternion, SerializationHelper } from "../Misc/decorators";
-import { Tags } from "../Misc/tags";
 import { Observable } from "../Misc/observable";
 
 import { Nullable } from "../types";
@@ -1120,10 +1119,6 @@ export class TransformNode extends Node {
             serializationObject.parentId = this.parent.id;
         }
 
-        if (Tags && Tags.HasTags(this)) {
-            serializationObject.tags = Tags.GetTags(this);
-        }
-
         serializationObject.localMatrix = this.getPivotMatrix().asArray();
 
         serializationObject.isEnabled = this.isEnabled();
@@ -1147,10 +1142,6 @@ export class TransformNode extends Node {
     public static Parse(parsedTransformNode: any, scene: Scene, rootUrl: string): TransformNode {
         var transformNode = SerializationHelper.Parse(() => new TransformNode(parsedTransformNode.name, scene), parsedTransformNode, scene, rootUrl);
 
-        if (Tags) {
-            Tags.AddTagsTo(transformNode, parsedTransformNode.tags);
-        }
-
         if (parsedTransformNode.localMatrix) {
             transformNode.setPreTransformMatrix(Matrix.FromArray(parsedTransformNode.localMatrix));
         } else if (parsedTransformNode.pivotMatrix) {