Skip to content

Commit 275756e

Browse files
committed
Work around specific Godot functions unexposed in Release
1 parent 1d35c99 commit 275756e

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
@@ -62,6 +62,16 @@ pub fn is_class_method_deleted(class_name: &TyName, method: &JsonClassMethod, ct
6262
| ("VisualShaderNodeComment", "set_description")
6363
| ("VisualShaderNodeComment", "get_description")
6464
=> true,
65+
66+
// Workaround for methods unexposed in Release mode, see https://github.com./godotengine/godot/pull/100317
67+
// 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)