File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
godot-codegen/src/special_cases Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments