You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vector2/3 and other types not usable in constexpr functions #2046
Unlike the module api. Types such as Vector2, Vector3, Transform3D, etc... are not treated as literal types and cannot be used inside of constexpr functions
Steps to reproduce
This snippet of code compiles in a module but not a gdextension
I was poking around previous versions and learned that the vector and other math types are just out of sync. since 4.6 introduced that change. so the files from this commit would need to be updated. Unless this somehow breaks compatibility I could create the pr.
Activity
marcozee03 commentedon Aug 19, 2026
I was poking around previous versions and learned that the vector and other math types are just out of sync. since 4.6 introduced that change. so the files from this commit would need to be updated. Unless this somehow breaks compatibility I could create the pr.
Ivorforce commentedon Aug 19, 2026
Yea, if it's already fixed upstream syncing the changes over is fair game. Feel free to open a PR for it!