|
3 | 3 | */ |
4 | 4 | /* global QUnit */ |
5 | 5 |
|
| 6 | +import { AnimationClip } from '../../../../src/animation/AnimationClip'; |
6 | 7 | import { AnimationUtils } from '../../../../src/animation/AnimationUtils'; |
| 8 | +import { BufferAttribute } from '../../../../src/core/BufferAttribute'; |
| 9 | +import { BufferGeometry } from '../../../../src/core/BufferGeometry'; |
| 10 | +import { Mesh } from '../../../../src/objects/Mesh'; |
| 11 | +import { Object3D } from '../../../../src/core/Object3D'; |
7 | 12 | import { NumberKeyframeTrack } from '../../../../src/animation/tracks/NumberKeyframeTrack'; |
8 | 13 | import { VectorKeyframeTrack } from '../../../../src/animation/tracks/VectorKeyframeTrack'; |
9 | 14 | import { |
@@ -86,20 +91,20 @@ export default QUnit.module( 'Animation', () => { |
86 | 91 | InterpolateLinear |
87 | 92 | ); |
88 | 93 |
|
89 | | - var geometry = new THREE.BufferGeometry(); |
90 | | - var position = new THREE.BufferAttribute( new Float32Array( [ 0, 0, 0, 0, 0, 1, 1, 0, 1 ] ), 3 ); |
| 94 | + var geometry = new BufferGeometry(); |
| 95 | + var position = new BufferAttribute( new Float32Array( [ 0, 0, 0, 0, 0, 1, 1, 0, 1 ] ), 3 ); |
91 | 96 | geometry.addAttribute( 'position', position ); |
92 | 97 | geometry.morphAttributes.position = [ position, position ]; |
93 | 98 |
|
94 | | - var mesh = new THREE.Mesh( geometry ); |
| 99 | + var mesh = new Mesh( geometry ); |
95 | 100 | mesh.name = 'foo'; |
96 | 101 | mesh.morphTargetDictionary.a = 0; |
97 | 102 | mesh.morphTargetDictionary.b = 1; |
98 | 103 |
|
99 | | - var root = new THREE.Object3D(); |
| 104 | + var root = new Object3D(); |
100 | 105 | root.add( mesh ); |
101 | 106 |
|
102 | | - var clip = new THREE.AnimationClip( 'waltz', undefined, [ trackA, trackB ] ); |
| 107 | + var clip = new AnimationClip( 'waltz', undefined, [ trackA, trackB ] ); |
103 | 108 | clip = AnimationUtils.mergeMorphTargetTracks( clip, root ); |
104 | 109 |
|
105 | 110 | assert.equal( clip.tracks.length, 1, 'tracks are merged' ); |
|
0 commit comments