mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +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) {
|
node.onExecuted = function (message: any) {
|
||||||
onExecuted?.apply(this, arguments)
|
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(
|
configureLoad3D(
|
||||||
load3d,
|
load3d,
|
||||||
|
|||||||
Reference in New Issue
Block a user