Skip to content

fix: repaint COLORCODE widget swatch after picker change in Vue Node 2.0#204

Open
jtydhr88 wants to merge 1 commit into
1038lab:mainfrom
jtydhr88:fix/color-widget-vue-node-redraw
Open

fix: repaint COLORCODE widget swatch after picker change in Vue Node 2.0#204
jtydhr88 wants to merge 1 commit into
1038lab:mainfrom
jtydhr88:fix/color-widget-vue-node-redraw

Conversation

@jtydhr88
Copy link
Copy Markdown

Vue Node 2.0 renders this legacy custom widget on its own per-widget via WidgetLegacy.vue, which wires widget.callback to call triggerDraw. Without it, node.setDirtyCanvas() only marks the litegraph canvas dirty and the Vue canvas keeps showing the old colour after the user picks a new one. Invoke this.callback?.(this.value) on the change event so triggerDraw repaints the Vue canvas; litegraph behaviour is unchanged because no callback is wired there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant