mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
This commit is contained in:
@@ -180,7 +180,7 @@ void ResourceFormatPVR::get_recognized_extensions(List<String> *p_extensions) co
|
||||
}
|
||||
bool ResourceFormatPVR::handles_type(const String& p_type) const {
|
||||
|
||||
return ObjectTypeDB::is_type(p_type,"Texture");
|
||||
return ClassDB::is_parent_class(p_type,"Texture");
|
||||
}
|
||||
String ResourceFormatPVR::get_resource_type(const String &p_path) const {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user