Skip to content

Commit 77a9210

Browse files
committed
Merge branches 'dev' and 'dev' of https://github.com/mrdoob/three.js into dev
2 parents 81cddfa + bc76e18 commit 77a9210

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/geometries/ParametricBufferGeometry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BufferGeometry } from '../core/BufferGeometry';
2-
import { Float32Attribute, Uint16Attribute } from '../core/BufferAttribute';
2+
import { Float32Attribute, Uint16Attribute, Uint32Attribute } from '../core/BufferAttribute';
33

44
/**
55
* @author Mugen87 / https://github.com/Mugen87
@@ -72,7 +72,7 @@ function ParametricBufferGeometry( func, slices, stacks ) {
7272

7373
// build geometry
7474

75-
this.setIndex( Uint16Attribute( indices, 1 ) );
75+
this.setIndex( ( indices.length > 65535 ? Uint32Attribute : Uint16Attribute )( indices, 1 ) );
7676
this.addAttribute( 'position', Float32Attribute( vertices, 3 ) );
7777
this.addAttribute( 'uv', Float32Attribute( uvs, 2 ) );
7878

src/geometries/PolyhedronBufferGeometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BufferGeometry } from '../core/BufferGeometry';
2-
import { Uint16Attribute, Uint32Attribute, Float32Attribute } from '../core/BufferAttribute';
2+
import { Float32Attribute } from '../core/BufferAttribute';
33
import { Vector3 } from '../math/Vector3';
44
import { Vector2 } from '../math/Vector2';
55
import { Sphere } from '../math/Sphere';

0 commit comments

Comments
 (0)