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

Signal connection fails when unbinding args and creating function #102007

Open
quinnyo opened this issue Jan 25, 2025 · 0 comments · May be fixed by #102258
Open

Signal connection fails when unbinding args and creating function #102007

quinnyo opened this issue Jan 25, 2025 · 0 comments · May be fixed by #102258

Comments

@quinnyo
Copy link
Contributor

quinnyo commented Jan 25, 2025

Tested versions

System information

Windows 11 (build 22631) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - Intel(R) Iris(R) Xe Graphics (Intel Corporation; 32.0.101.5768) - 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 threads)

Issue description

Unbinding arguments in the editor Connection Dialog causes the connection to fail if also generating the receiving function.

An error is printed:
ERROR: Cannot connect to 'toggled': the provided callable is not valid: 'Control(main.gd)::_on_check_box_toggled'.

  • unbinding works fine when the receiving function already exists
  • the generated function is correct
  • not unbinding any parameters works without issue
  • if the signal has more than one parameter, unbinding any number (more than zero) produces the error

Steps to reproduce

  1. Create a scene with a CheckBox and a node with a new script.
  2. Use the Signal/Connections dock to make a connection from the CheckBox's toggled signal.
  3. Expand the 'advanced' panel in the Connection Dialog
  4. Set unbind signal arguments spinner to 1
  5. Press Connect

Minimal reproduction project (MRP)

N/A

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

Successfully merging a pull request may close this issue.

2 participants