mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 00:04:06 +00:00
[3d] fix file path issue for preview 3d node (#2005)
This commit is contained in:
@@ -1748,7 +1748,17 @@ app.registerExtension({
|
||||
node.onExecuted = function (message: any) {
|
||||
onExecuted?.apply(this, arguments)
|
||||
|
||||
modelWidget.value = message.model_file[0]
|
||||
let filePath = message.model_file[0]
|
||||
|
||||
if (!filePath) {
|
||||
const msg = 'unable to get model file path.'
|
||||
|
||||
console.error(msg)
|
||||
|
||||
useToastStore().addAlert(msg)
|
||||
}
|
||||
|
||||
modelWidget.value = filePath.replaceAll('\\', '/')
|
||||
|
||||
configureLoad3D(
|
||||
load3d,
|
||||
|
||||
Reference in New Issue
Block a user