We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b696ebf commit 325f6c4Copy full SHA for 325f6c4
1 file changed
src/lib/fileImport.ts
@@ -5,13 +5,11 @@ import { loadPointCloud } from '@/lib/pointCloudLoader.ts'
5
import { detectPlyKind } from '@/lib/plyFormat.ts'
6
import { VantageProjection, loadTexture } from '@/lib/scene/projection'
7
import { FILE_PATTERNS } from '@/lib/constants.ts'
8
-import { notify } from '@/lib/notifications.svelte.ts'
9
10
export type ImportErrorHandler = (file: File, error: Error) => void
11
12
const defaultOnError: ImportErrorHandler = (file, error) => {
13
console.error(`Failed to import ${file.name}:`, error)
14
- notify(error.message || `Failed to import ${file.name}`, 'error')
15
}
16
17
export async function importModelFiles(
0 commit comments