Sfoglia il codice sorgente

Merge pull request #1456 from wyklion/master

add set id method to prim2dBase
Loïc Baumann 8 anni fa
parent
commit
6fb0a88cb0
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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
          */