Skip to content

Commit 40a70fe

Browse files
committed
Work around specific Godot functions unexposed in Release
1 parent 1d35c99 commit 40a70fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

godot-codegen/src/special_cases/special_cases.rs

+10
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub fn is_class_method_deleted(class_name: &TyName, method: &JsonClassMethod, ct
5252
| ("GDExtension", "initialize_library")
5353
| ("GDExtension", "close_library")
5454

55+
5556
// TODO: Godot exposed methods that are unavailable, bug reported in https://github.com/godotengine/godot/issues/90303.
5657
| ("OpenXRHand", "set_hand_skeleton")
5758
| ("OpenXRHand", "get_hand_skeleton")
@@ -62,6 +63,15 @@ pub fn is_class_method_deleted(class_name: &TyName, method: &JsonClassMethod, ct
6263
| ("VisualShaderNodeComment", "set_description")
6364
| ("VisualShaderNodeComment", "get_description")
6465
=> true,
66+
67+
// Workaround for bug, see https://github.com/godotengine/godot/pull/100317 and https://github.com/godotengine/godot/pull/100328.
68+
#[cfg(not(debug_assertions))]
69+
| ("CollisionShape2D", "set_debug_color")
70+
| ("CollisionShape2D", "get_debug_color")
71+
| ("CollisionShape3D", "set_debug_color")
72+
| ("CollisionShape3D", "get_debug_color")
73+
| ("CollisionShape3D", "set_debug_fill_enabled")
74+
| ("CollisionShape3D", "get_debug_fill_enabled") => true,
6575

6676
// Thread APIs
6777
#[cfg(not(feature = "experimental-threads"))]

0 commit comments

Comments
 (0)