@@ -5,7 +5,8 @@
THREE.BufferGeometry = function () {
- this.id = THREE.GeometryIdCount ++;
+ Object.defineProperty( this, 'id', { value: THREE.GeometryIdCount ++ } );
+
this.uuid = THREE.Math.generateUUID();
this.name = '';
@@ -9,7 +9,8 @@
THREE.Geometry = function () {
@@ -7,7 +7,8 @@
THREE.Object3D = function () {
- this.id = THREE.Object3DIdCount ++;
+ Object.defineProperty( this, 'id', { value: THREE.Object3DIdCount ++ } );
THREE.Material = function () {
- this.id = THREE.MaterialIdCount ++;
+ Object.defineProperty( this, 'id', { value: THREE.MaterialIdCount ++ } );
@@ -6,7 +6,8 @@
THREE.Texture = function ( image, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
- this.id = THREE.TextureIdCount ++;
+ Object.defineProperty( this, 'id', { value: THREE.TextureIdCount ++ } );