-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
VisualScriptEditor Fix in graph position calculation (do not skip zoom) #49854
VisualScriptEditor Fix in graph position calculation (do not skip zoom) #49854
Conversation
Oh seeing this makes me happy. Code seems good. It seems to set position on window zero or last position. |
After a little digging I think here's the relevant part (linked code includes this PR). As you can see it uses @DavidCambre And big thanks for the review/feedback! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Thanks for reviewing @DavidCambre and @kleonc for working on it.
f00e301
to
921e6ef
Compare
@fire I do not now ho to ask. Please merge? So I can work on the rebase for PR49749 |
Thanks. |
This would need a dedicated PR for |
It's because of this change since that changed condition is non-existant in |
I think that this is still a problem. Currently building a plugin that uses a Visual Node system for dialogues, and I get this behaviour on Sorry to resurrect an old issue, I'll open a new one if it is more appropriate. |
@veryprofessionaldodo As I've just mentioned in the Reddit thread where you're describing your issue: this PR is actually not related to your issue. So yes, please open a new issue. Also provided gif is a nice addition but it's much easier to investigate the issue having minimal reproduction project provided (please provide one when opening new issue). |
Hi there! It was actually my bad, and not related to this at all indeed. The problem was that I had a hidden AcceptDialog inside of the GraphEdit that was catching inputs, as it can be seen here. Sorry for adding entropy, it's already fixed! |
Calculations for converting in-editor position to in-graph position was made manually in many separate places, some of them didn't take zoom into account. Extracted that into seperate method.
Tested it briefly in
3.x
, seems to work. But more testing is welcomed before merging.Fixes #49840 (and probably more zoom-related issues, e.g. before this PR it was possible to start dragging a node by clicking outside of it, with this PR it seems to no longer be the case).
Cherry-pickable
3.x
,3.3
.