godot-rust / gdnative

Rust bindings for Godot 3
https://godot-rust.github.io
MIT License
3.61k stars 210 forks source link

Vector4i doesn't implement "into Variant" #1058

Closed GsLogiMaker closed 11 months ago

GsLogiMaker commented 11 months ago

Vector4i objects don't have means to convert to Variant.

Here is an example of what I'd expect to work:

let vec4i = Vector4i::new(0, 0, 0, 0);
let variant = Variant::from(vec4i);

But doing so produces the following error:

the trait bound `godot::prelude::Vector4i: EngineEnum` is not satisfied
chitoyuu commented 11 months ago

Please file issues concerning the GDExtension (Godot 4) bindings in the gdext issue tracker.

Bromeon commented 11 months ago

No need to file it there; we are already implementing this as part of https://github.com/godot-rust/gdext/pull/421.