diff --git a/src/exporters/OBJExporter.ts b/src/exporters/OBJExporter.ts index 31c6802b..58672ed5 100644 --- a/src/exporters/OBJExporter.ts +++ b/src/exporters/OBJExporter.ts @@ -168,7 +168,7 @@ class OBJExporter { const geometry = line.geometry const type = line.type - if (geometry.isBufferGeometry) { + if (!geometry.isBufferGeometry) { throw new Error('THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry.') }