mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
Handle Load3D "none" model selection in frontend
This commit is contained in:
@@ -295,7 +295,7 @@ useExtensionService().registerExtension({
|
||||
|
||||
const modelWidget = node.widgets?.find((w) => w.name === 'model_file')
|
||||
if (modelWidget) {
|
||||
modelWidget.value = ''
|
||||
modelWidget.value = 'none'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ class Load3DConfiguration {
|
||||
loadFolder,
|
||||
cameraState
|
||||
)
|
||||
if (modelWidget.value) {
|
||||
if (modelWidget.value && modelWidget.value !== 'none') {
|
||||
onModelWidgetUpdate(modelWidget.value)
|
||||
}
|
||||
|
||||
@@ -226,7 +226,10 @@ class Load3DConfiguration {
|
||||
) {
|
||||
let isFirstLoad = true
|
||||
return async (value: string | number | boolean | object) => {
|
||||
if (!value) return
|
||||
if (!value || value === 'none') {
|
||||
this.load3d.clearModel()
|
||||
return
|
||||
}
|
||||
|
||||
const filename = value as string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user