diff --git a/src/core/Geometry.js b/src/core/Geometry.js index 222d4547f0b0417cad1405d76fda81df1cd0b836..9c217d3c934b2d0690ec2bda02f3fe6310c94610 100644 --- a/src/core/Geometry.js +++ b/src/core/Geometry.js @@ -189,6 +189,13 @@ Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ), var indices = geometry.index !== null ? geometry.index.array : undefined; var attributes = geometry.attributes; + if ( attributes.position === undefined ) { + + console.error( 'THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion.' ); + return this; + + } + var positions = attributes.position.array; var normals = attributes.normal !== undefined ? attributes.normal.array : undefined; var colors = attributes.color !== undefined ? attributes.color.array : undefined;