mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2025-01-10 19:35:09 +01:00
better error handling
This commit is contained in:
parent
1b6a5966ca
commit
782c61ecdb
@ -27,8 +27,7 @@ export default class extends EventDispatcher {
|
|||||||
} else if (geometry.type.endsWith('Geometry')) {
|
} else if (geometry.type.endsWith('Geometry')) {
|
||||||
geometry = geometry.clone();
|
geometry = geometry.clone();
|
||||||
} else {
|
} else {
|
||||||
console.warn('Geometry is not an instance of BufferGeometry or Geometry');
|
throw 'Geometry is not an instance of BufferGeometry or Geometry';
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (matrix instanceof THREE.Matrix4) {
|
if (matrix instanceof THREE.Matrix4) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user