Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DotNodeGadget::label calls getValue() Without Scoping Context #5330

Closed
danieldresser-ie opened this issue Jun 1, 2023 · 1 comment
Closed

Comments

@danieldresser-ie
Copy link
Contributor

We generally don't want this kind of node graph stuff to trigger potentially expensive computations without deferring to a background thread ... but currently DotNodeGadget::plugDirtied just calls updateLabel(), which does a getValue() on the label.

This getValue() doesn't scope the script's context however, resulting in inconsistent results - if you drive a Dot's label with an expression that depends on context, you see one value in the Node Editor and a different value in the Node Graph.

It should be pretty easy to scope the script context, but once we're allowing for computation to happen here, maybe we should also be deferring this to a background thread at the same time?

@johnhaddon
Copy link
Member

Fixed in #5332. We should move stuff to a background thread at some point, but since we're already paying the cost of a compute, we might as well do the right compute.

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

No branches or pull requests

2 participants