Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/BufferAttribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const _vector2 = /*@__PURE__*/ new Vector2();

class BufferAttribute {

constructor( array, itemSize, normalized ) {
constructor( array, itemSize, normalized = false ) {

if ( Array.isArray( array ) ) {

Expand All @@ -23,7 +23,7 @@ class BufferAttribute {
this.array = array;
this.itemSize = itemSize;
this.count = array !== undefined ? array.length / itemSize : 0;
this.normalized = normalized === true;
this.normalized = normalized;

this.usage = StaticDrawUsage;
this.updateRange = { offset: 0, count: - 1 };
Expand Down