Explorar o código

Merge pull request #1456 from wyklion/master

add set id method to prim2dBase
Loïc Baumann %!s(int64=8) %!d(string=hai) anos
pai
achega
6fb0a88cb0
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      canvas2D/src/Engine/babylon.prim2dBase.ts

+ 8 - 0
canvas2D/src/Engine/babylon.prim2dBase.ts

@@ -1662,6 +1662,14 @@
             return this._id;
         }
 
+        public set id(value: string) {
+            if (this._id === value) {
+                return;
+            }
+            let oldValue = this._id;
+            this.onPropertyChanged("id", oldValue, this._id);
+        }
+
         /**
          * Metadata of the position property
          */