-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Draggin in/out from ports to create nodes in Animation Blend Tree editor #52827
Draggin in/out from ports to create nodes in Animation Blend Tree editor #52827
Conversation
36a8f6c
to
0865954
Compare
The dragging feature looks great. Haven't done the technical review or the compile test yet though. |
d33fd5c
to
4dda360
Compare
4dda360
to
8e6fdd5
Compare
Thanks! |
@@ -905,13 +948,13 @@ AnimationNodeBlendTreeEditor::AnimationNodeBlendTreeEditor() { | |||
add_node->connect("about_to_popup", callable_mp(this, &AnimationNodeBlendTreeEditor::_update_options_menu)); | |||
|
|||
add_options.push_back(AddOption("Animation", "AnimationNodeAnimation")); | |||
add_options.push_back(AddOption("OneShot", "AnimationNodeOneShot")); |
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.
Running clang tidy on the entire engine- this line was changed.
2
is implicitly converted to true
since the third constructor parameter of AddOption
is a bool
. Is this supposed to be true
, or is AddOption
supposed to take an int
? Assuming the latter since the parameter has count
in the name.
Edit: Actually it's pretty clear the parameter should be int
. I changed it myself. You can track my changes at #55785.
P.S: Might be an hour or so until I push
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.
Yeah, it was a small mistake.
QoL enhancement for that editor to allow users to create auto-connected nodes by dragging from the ports (like VisualShader already):