mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 00:20:07 +00:00
Type LGraphNode.getInnerNodes (#2498)
This commit is contained in:
@@ -856,6 +856,7 @@ export class GroupNodeHandler {
|
||||
for (let i = 0; i < c.nodes.length; i++) {
|
||||
let id = innerNodes?.[i]?.id
|
||||
// Use existing IDs if they are set on the inner nodes
|
||||
// @ts-expect-error id can be string or number
|
||||
if (id == null || isNaN(id)) {
|
||||
id = undefined
|
||||
} else {
|
||||
|
||||
@@ -151,7 +151,6 @@ app.registerExtension({
|
||||
height
|
||||
)
|
||||
|
||||
// @ts-expect-error hacky override
|
||||
sceneWidget.serializeValue = async () => {
|
||||
node.properties['Camera Info'] = load3d.getCameraState()
|
||||
|
||||
@@ -314,7 +313,6 @@ app.registerExtension({
|
||||
height
|
||||
)
|
||||
|
||||
// @ts-expect-error hacky override
|
||||
sceneWidget.serializeValue = async () => {
|
||||
node.properties['Camera Info'] = load3d.getCameraState()
|
||||
|
||||
|
||||
@@ -101,10 +101,8 @@ app.registerExtension({
|
||||
capture
|
||||
)
|
||||
btn.disabled = true
|
||||
// @ts-expect-error hacky override
|
||||
btn.serializeValue = () => undefined
|
||||
|
||||
// @ts-expect-error hacky override
|
||||
camera.serializeValue = async () => {
|
||||
if (captureOnQueue.value) {
|
||||
capture()
|
||||
|
||||
Reference in New Issue
Block a user