Skip to content

Commit 7bff100

Browse files
committed
disable use image imput as bgimage for load3d
1 parent c30746e commit 7bff100

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/extensions/core/load3d.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -376,37 +376,6 @@ useExtensionService().registerExtension({
376376
}
377377
}
378378
})
379-
380-
useLoad3d(node).waitForLoad3d((load3d) => {
381-
const onExecuted = node.onExecuted
382-
383-
node.onExecuted = function (message: any) {
384-
onExecuted?.apply(this, arguments as any)
385-
386-
const cameraInfo = message.camera_info?.[0]
387-
388-
const bgImagePath = message.bg_image_path?.[0]
389-
390-
if (cameraInfo) {
391-
const config = new Load3DConfiguration(load3d)
392-
const modelWidget = node.widgets?.find((w) => w.name === 'model_file')
393-
if (modelWidget) {
394-
const settings = {
395-
loadFolder: 'input',
396-
modelWidget: modelWidget,
397-
cameraState: cameraInfo,
398-
bgImagePath: bgImagePath
399-
}
400-
401-
config.configure(settings)
402-
}
403-
}
404-
405-
if (bgImagePath) {
406-
load3d.setBackgroundImage(bgImagePath)
407-
}
408-
}
409-
})
410379
}
411380
})
412381

0 commit comments

Comments
 (0)