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

Curve2D add_point errors with "no compatibility fallback" when compiled with double precision #95622

Closed
Naros opened this issue Aug 16, 2024 · 1 comment

Comments

@Naros
Copy link
Contributor

Naros commented Aug 16, 2024

Tested versions

Godot 4.3.stable / Godot 4.4.dev

System information

Windows 11

Issue description

When the editor and godot-cpp are both compiled using double-precision, calling Curve2D::add_point results in this error:

ERROR: Method 'Curve2D.add_point' has changed and no compatibility fallback has been provided. Please open an issue.
   at: gdextension_classdb_get_method_bind (core\extension\gdextension_interface.cpp:1511)

Steps to reproduce

  1. Compile editor using scons precision=double
  2. Export extension_api.json and gdextension.h from double-based editor binary.
  3. Compile a GDExtension application using the double-based files from (2), setting precision to double, too.
  4. Load GDExtension plugin editor that uses Curve2D::add_point, editor crashes.

Minimal reproduction project (MRP)

See godotengine/godot-cpp#1512 for a MRP.

@Naros
Copy link
Contributor Author

Naros commented Aug 16, 2024

Sorry, my mistake for exporting the extension_api.json from the non-double binary 🫨

@Naros Naros closed this as completed Aug 16, 2024
@akien-mga akien-mga added archived and removed bug labels Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants