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

Draggin in/out from ports to create nodes in Animation Blend Tree editor #52827

Merged

Conversation

Chaosus
Copy link
Member

@Chaosus Chaosus commented Sep 18, 2021

QoL enhancement for that editor to allow users to create auto-connected nodes by dragging from the ports (like VisualShader already):

blendtree_connection

@Chaosus Chaosus added this to the 4.0 milestone Sep 18, 2021
@Chaosus Chaosus force-pushed the blend_tree_connection_improvement branch 3 times, most recently from 36a8f6c to 0865954 Compare September 18, 2021 15:36
@fire
Copy link
Member

fire commented Sep 18, 2021

The dragging feature looks great.

Haven't done the technical review or the compile test yet though.

@Chaosus Chaosus force-pushed the blend_tree_connection_improvement branch 4 times, most recently from d33fd5c to 4dda360 Compare September 20, 2021 07:28
@Chaosus Chaosus force-pushed the blend_tree_connection_improvement branch from 4dda360 to 8e6fdd5 Compare September 20, 2021 07:39
@akien-mga akien-mga merged commit aa463ff into godotengine:master Sep 20, 2021
@akien-mga
Copy link
Member

Thanks!

@Chaosus Chaosus deleted the blend_tree_connection_improvement branch September 20, 2021 10:30
@@ -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"));
Copy link
Contributor

@nathanfranke nathanfranke Dec 17, 2021

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

Line changes, where an extra constructor parameter was added.

Copy link
Member Author

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.

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

Successfully merging this pull request may close these issues.

5 participants