mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 14:20:49 +08:00
tweak
This commit is contained in:
parent
0d9232f02c
commit
cc5f16caeb
@ -158,7 +158,8 @@ app.registerExtension({
|
|||||||
},
|
},
|
||||||
|
|
||||||
async beforeRegisterNodeDef(nodeType, nodeData) {
|
async beforeRegisterNodeDef(nodeType, nodeData) {
|
||||||
if (nodeData.name === "EvalPython") {
|
// Handle all EvalPython node variants
|
||||||
|
if (nodeData.name.startsWith("EvalPython")) {
|
||||||
const originalOnConfigure = nodeType.prototype.onConfigure;
|
const originalOnConfigure = nodeType.prototype.onConfigure;
|
||||||
nodeType.prototype.onConfigure = function (info) {
|
nodeType.prototype.onConfigure = function (info) {
|
||||||
originalOnConfigure?.apply(this, arguments);
|
originalOnConfigure?.apply(this, arguments);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user