From 549ebe310cc2f2029c227ba5c68293d6cccbabc1 Mon Sep 17 00:00:00 2001 From: Yarvin Date: Fri, 26 Jul 2024 17:58:20 +0200 Subject: [PATCH] Allow codegen for UniformSetCacheRD for godot >=4.3 - UniformSetCacheRD has been reintroduced by https://github.com/godotengine/godot/commit/5a988456 --- godot-codegen/src/special_cases/special_cases.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/godot-codegen/src/special_cases/special_cases.rs b/godot-codegen/src/special_cases/special_cases.rs index 735c6b23d..149bf3eed 100644 --- a/godot-codegen/src/special_cases/special_cases.rs +++ b/godot-codegen/src/special_cases/special_cases.rs @@ -108,6 +108,13 @@ pub fn is_godot_type_deleted(godot_ty: &str) -> bool { return true; } + // UniformSetCacheRD has been reintroduced in 4.3 + // see: https://github.com/godotengine/godot/pull/80214 + #[cfg(since_api = "4.3")] + if godot_ty == "UniformSetCacheRD" { + return false; + } + match godot_ty { // Hardcoded cases that are not accessible. // Only on Android.