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

Sending int from GDScript to float c++ function receives 0 (zero) #1106

Closed
RonYanDaik opened this issue May 2, 2023 · 2 comments · Fixed by godotengine/godot#75758
Closed
Labels
bug This has been identified as a bug
Milestone

Comments

@RonYanDaik
Copy link

I have c++ function ClassDB::bind_method(D_METHOD("ReceivedDamage","damage"), &Person::ReceivedDamage); which is ReceivedDamage(float damage);
From gdscript I call it with ReceivedDamage(10) and in c++ 0 is received. Sending ReceivedDamage(10.0) works fine

@RonYanDaik RonYanDaik changed the title Sending int to float function receives 0 (zero) Sending int from GDScript to float c++ function receives 0 (zero) May 2, 2023
@dsnopek
Copy link
Collaborator

dsnopek commented May 2, 2023

This sounds like it may be a duplicate of godotengine/godot#75757

Can you test if PR godotengine/godot#75758 fixes it for you?

@DmitriySalnikov
Copy link
Contributor

#907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This has been identified as a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants