Skip to content

Add missing AABB constructor with 6 real_t values - #2063

Merged
dsnopek merged 1 commit into
godotengine:masterfrom
aaronfranke:aabb-construct
Oct 8, 2026
Merged

dsnopek merged 1 commit into
godotengine:masterfrom
aaronfranke:aabb-construct

Conversation

@aaronfranke

Copy link
Copy Markdown
Member

This is the same as PR #1742, but for AABB instead of Projection.


When GDExtension generates bindings, it creates C++ code based on the API JSON. Values are serialized into literals constructed with numbers matching the value, for example, Vector3(0, 1, 0). This includes default values for function parameters. AABB default values are serialized like AABB(0, 0, 0, 1, 1, 1). However, Godot is missing a constructor for AABB, so the generated C++ code doesn't compile:

Screenshot 2026-10-06 142244

I encountered this problem when the CI checks for godot-cpp failed to compile with my 4D module, because one of the bound methods includes an AABB default value, which cannot be constructed, as seen in the above image. This wasn't a problem in the engine before because the engine doesn't have any AABB default values in parameters.

See also PR which adds this to the engine: godotengine/godot#124240

@Ivorforce Ivorforce left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corresponds to merged upstream pr

@dsnopek
dsnopek merged commit 58d7302 into godotengine:master Oct 8, 2026
38 of 40 checks passed
@dsnopek

dsnopek commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@aaronfranke
aaronfranke deleted the aabb-construct branch October 9, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants