comfyui-profiler
comfyui-profiler copied to clipboard
Fix `onDrawForeground` patch
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.
To demonstrate the issue you can try using with a custom node pack that patches onDrawForeground like comfy_mtb
Thanks