-
-
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
Make the dragging connections more user-friendly in visual shaders #78547
Conversation
f80142a
to
c2131c3
Compare
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.
Tested, works! Thank you so much 🙏
The method should probably take a "type" parameter, so that it can return different values depending on the data type of the connection. Since not all nodes have the same data types for all input ports. |
@Chaosus What do you think about the suggestion above? |
Sounds reasonable, I take a look to implement this... PS: Done |
c2131c3
to
88001ab
Compare
Hey! testted the smoothstep connection, thanks a lot for doing the groundwork for this improvement! I don't think that the type is working? maybe i misunderstood how it works |
It has meaning only for |
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.
Just a couple suggestions for the documentation.
88001ab
to
0110113
Compare
This implements the
get_default_input_port
function toVisualShaderNode
, so now nodes can be connected to specified port by default when the new node created from dragging from output ports. Implemented the overrides forsmoothstep
/step
nodes. Closes godotengine/godot-proposals#5090