|
@@ -9,16 +9,17 @@ import { Matrix4 } from '../math/Matrix4.js';
|
|
import { Matrix3 } from '../math/Matrix3.js';
|
|
import { Matrix3 } from '../math/Matrix3.js';
|
|
import { _Math } from '../math/Math.js';
|
|
import { _Math } from '../math/Math.js';
|
|
import { arrayMax } from '../utils.js';
|
|
import { arrayMax } from '../utils.js';
|
|
-import { GeometryIdCount } from './Geometry.js';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author alteredq / http://alteredqualia.com/
|
|
* @author alteredq / http://alteredqualia.com/
|
|
* @author mrdoob / http://mrdoob.com/
|
|
* @author mrdoob / http://mrdoob.com/
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+var bufferGeometryId = 1; // BufferGeometry uses odd numbers as Id
|
|
|
|
+
|
|
function BufferGeometry() {
|
|
function BufferGeometry() {
|
|
|
|
|
|
- Object.defineProperty( this, 'id', { value: GeometryIdCount() } );
|
|
|
|
|
|
+ Object.defineProperty( this, 'id', { value: bufferGeometryId += 2 } );
|
|
|
|
|
|
this.uuid = _Math.generateUUID();
|
|
this.uuid = _Math.generateUUID();
|
|
|
|
|