Skip to content

Commit 61a3284

Browse files
committed
Fix properties of TYPE_FLOAT
1 parent e9a0006 commit 61a3284

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addons/csharp_gdextension_bindgen/csharp_gdextension_bindgen.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ static func _get_property_type(property: Dictionary) -> String:
504504
return "Godot.Error"
505505
return enum_name + "Enum"
506506
return "int"
507+
TYPE_FLOAT:
508+
return "double" if OS.has_feature("double") else "float"
507509
TYPE_STRING:
508510
return "string"
509511
TYPE_VECTOR2I:

0 commit comments

Comments
 (0)