Skip to content

Commit

Permalink
Clean up. (#21710)
Browse files Browse the repository at this point in the history
  • Loading branch information
linbingquan committed Apr 24, 2021
1 parent 61a8dfc commit a1cffe9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/core/BufferAttribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Vector2 } from '../math/Vector2.js';
import { Color } from '../math/Color.js';
import { StaticDrawUsage } from '../constants.js';

const _vector = new /*@__PURE__*/ Vector3();
const _vector2 = new /*@__PURE__*/ Vector2();
const _vector = /*@__PURE__*/ new Vector3();
const _vector2 = /*@__PURE__*/ new Vector2();

class BufferAttribute {

Expand Down
12 changes: 6 additions & 6 deletions src/core/BufferGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import { arrayMax } from '../utils.js';

let _id = 0;

const _m1 = new /*@__PURE__*/ Matrix4();
const _obj = new /*@__PURE__*/ Object3D();
const _offset = new /*@__PURE__*/ Vector3();
const _box = new /*@__PURE__*/ Box3();
const _boxMorphTargets = new /*@__PURE__*/ Box3();
const _vector = new /*@__PURE__*/ Vector3();
const _m1 = /*@__PURE__*/ new Matrix4();
const _obj = /*@__PURE__*/ new Object3D();
const _offset = /*@__PURE__*/ new Vector3();
const _box = /*@__PURE__*/ new Box3();
const _boxMorphTargets = /*@__PURE__*/ new Box3();
const _vector = /*@__PURE__*/ new Vector3();

class BufferGeometry extends EventDispatcher {

Expand Down
2 changes: 1 addition & 1 deletion src/core/InterleavedBufferAttribute.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Vector3 } from '../math/Vector3.js';
import { BufferAttribute } from './BufferAttribute.js';

const _vector = new /*@__PURE__*/ Vector3();
const _vector = /*@__PURE__*/ new Vector3();

class InterleavedBufferAttribute {

Expand Down
24 changes: 12 additions & 12 deletions src/core/Object3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ import * as MathUtils from '../math/MathUtils.js';

let _object3DId = 0;

const _v1 = new /*@__PURE__*/ Vector3();
const _q1 = new /*@__PURE__*/ Quaternion();
const _m1 = new /*@__PURE__*/ Matrix4();
const _target = new /*@__PURE__*/ Vector3();

const _position = new /*@__PURE__*/ Vector3();
const _scale = new /*@__PURE__*/ Vector3();
const _quaternion = new /*@__PURE__*/ Quaternion();

const _xAxis = new /*@__PURE__*/ Vector3( 1, 0, 0 );
const _yAxis = new /*@__PURE__*/ Vector3( 0, 1, 0 );
const _zAxis = new /*@__PURE__*/ Vector3( 0, 0, 1 );
const _v1 = /*@__PURE__*/ new Vector3();
const _q1 = /*@__PURE__*/ new Quaternion();
const _m1 = /*@__PURE__*/ new Matrix4();
const _target = /*@__PURE__*/ new Vector3();

const _position = /*@__PURE__*/ new Vector3();
const _scale = /*@__PURE__*/ new Vector3();
const _quaternion = /*@__PURE__*/ new Quaternion();

const _xAxis = /*@__PURE__*/ new Vector3( 1, 0, 0 );
const _yAxis = /*@__PURE__*/ new Vector3( 0, 1, 0 );
const _zAxis = /*@__PURE__*/ new Vector3( 0, 0, 1 );

const _addedEvent = { type: 'added' };
const _removedEvent = { type: 'removed' };
Expand Down

0 comments on commit a1cffe9

Please sign in to comment.