We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7768d90 + ae789d9 commit d7dfcf2Copy full SHA for d7dfcf2
godot-codegen/src/conv/type_conversions.rs
@@ -75,10 +75,14 @@ fn to_hardcoded_rust_ident(full_ty: &GodotTy) -> Option<&str> {
75
}
76
77
fn to_hardcoded_rust_enum(ty: &str) -> Option<&str> {
78
+ // Some types like Vector2[i].Axis may not appear in Godot's current JSON, but they are encountered
79
+ // in custom Godot builds, e.g. when extending PhysicsServer2D.
80
let result = match ty {
81
//"enum::Error" => "GodotError",
82
"enum::Variant.Type" => "VariantType",
83
"enum::Variant.Operator" => "VariantOperator",
84
+ "enum::Vector2.Axis" => "Vector2Axis",
85
+ "enum::Vector2i.Axis" => "Vector2Axis",
86
"enum::Vector3.Axis" => "Vector3Axis",
87
"enum::Vector3i.Axis" => "Vector3Axis",
88
_ => return None,
0 commit comments