Skip to content

Commit 66bd5ad

Browse files
authored
Merge pull request #816 from Yarwin/feature/reintroduce-uniform-set-cache-rd
Allow codegen for UniformSetCacheRD for godot >=4.3
2 parents bf67856 + 78344da commit 66bd5ad

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

godot-codegen/src/special_cases/special_cases.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,6 @@ pub fn is_godot_type_deleted(godot_ty: &str) -> bool {
100100
}
101101
}
102102

103-
// ThemeDB was previously loaded lazily
104-
// in 4.2 it loads at the Scene level
105-
// see: https://github.com/godotengine/godot/pull/81305
106-
#[cfg(before_api = "4.2")]
107-
if godot_ty == "ThemeDB" {
108-
return true;
109-
}
110-
111103
match godot_ty {
112104
// Hardcoded cases that are not accessible.
113105
// Only on Android.
@@ -135,9 +127,14 @@ pub fn is_godot_type_deleted(godot_ty: &str) -> bool {
135127
| "MovieWriterMJPEG"
136128
| "MovieWriterPNGWAV"
137129
| "ResourceFormatImporterSaver"
130+
=> true,
131+
// Previously loaded lazily; in 4.2 it loads at the Scene level. See: https://github.com/godotengine/godot/pull/81305
132+
| "ThemeDB"
133+
=> cfg!(before_api = "4.2"),
134+
// reintroduced in 4.3. See: https://github.com/godotengine/godot/pull/80214
138135
| "UniformSetCacheRD"
139-
140-
=> true, _ => false
136+
=> cfg!(before_api = "4.3"),
137+
_ => false
141138
}
142139
}
143140

0 commit comments

Comments
 (0)