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
When implemented to a IPhysicsServer2DExtension gives the following error:
17 | #[godot_api]
| ^^^^^^^^^^^^ the trait `ToGodot` is not implemented for `*mut i32`, which is required by `(bool, godot::prelude::Rid, godot::prelude::Transform2D, godot::prelude::Vector2, godot::prelude::Rid, godot::prelude::Transform2D, godot::prelude::Vector2, *mut c_void, i32, *mut i32): PtrcallSignatureTuple`
|
= help: the trait `ToGodot` is implemented for `i32`
= note: required for `(bool, Rid, Transform2D, Vector2, Rid, Transform2D, Vector2, *mut c_void, i32, *mut i32)` to implement `PtrcallSignatureTuple`
The text was updated successfully, but these errors were encountered:
This happens because we only implement ToGodot/FromGodot for native class pointers, but not primitive pointers even if they show up in parameters of functions. as a simple fix we could just manually implement this, but a more proper long term fix would be to have the codegen find all used pointer types and automatically implement the traits for them.
The following 2 functions:
When implemented to a
IPhysicsServer2DExtension
gives the following error:The text was updated successfully, but these errors were encountered: