mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
better error handling
This commit is contained in:
parent
37fb7e162a
commit
0553076c57
@ -27,8 +27,7 @@ export default class extends EventDispatcher {
|
||||
} else if (geometry.type.endsWith('Geometry')) {
|
||||
geometry = geometry.clone();
|
||||
} else {
|
||||
console.warn('Geometry is not an instance of BufferGeometry or Geometry');
|
||||
return;
|
||||
throw 'Geometry is not an instance of BufferGeometry or Geometry';
|
||||
}
|
||||
|
||||
if (matrix instanceof THREE.Matrix4) {
|
||||
|
Loading…
Reference in New Issue
Block a user