comfyui-profiler icon indicating copy to clipboard operation
comfyui-profiler copied to clipboard

Fix `onDrawForeground` patch

Open christian-byrne opened this issue 1 year ago • 1 comments

apply should maintain the original node instance context. Doing apply(ctx, arguments) in this case sets this to ctx rather than node. This breaks other extensions which patch onDrawForeground and use this inside those patches to try to refer to the node instance.

christian-byrne avatar Aug 01 '24 01:08 christian-byrne

To demonstrate the issue you can try using with a custom node pack that patches onDrawForeground like comfy_mtb

christian-byrne avatar Aug 12 '24 14:08 christian-byrne

Thanks

tzwm avatar Aug 28 '24 14:08 tzwm