diff --git a/render-process/Editor/NodePanel.tsx b/render-process/Editor/NodePanel.tsx index 4b25803..1a07ce9 100644 --- a/render-process/Editor/NodePanel.tsx +++ b/render-process/Editor/NodePanel.tsx @@ -47,6 +47,7 @@ export default class NodePanel extends React.Component { name: model.name, desc: model.desc, debug: model.debug, + path: model.path, customArgs: model.args ? JSON.stringify(model.args, null, " ") : "", }; if (model.args) { @@ -95,6 +96,11 @@ export default class NodePanel extends React.Component { model.desc = values.desc; model.debug = values.debug; + if (model.path !== values.path) { + model.path = values.path; + forceUpdate = true; + } + if (conf.args) { conf.args.forEach((e) => { const k = "args." + e.name; @@ -188,6 +194,9 @@ export default class NodePanel extends React.Component { + + + {this.renderInputs(conf)} {this.renderArgs(conf)}