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:
@ -473,7 +473,7 @@ void ResourceFormatDDS::get_recognized_extensions(List<String> *p_extensions) co
|
||||
|
||||
bool ResourceFormatDDS::handles_type(const String& p_type) const {
|
||||
|
||||
return ObjectTypeDB::is_type(p_type,"Texture");
|
||||
return ClassDB::is_parent_class(p_type,"Texture");
|
||||
}
|
||||
|
||||
String ResourceFormatDDS::get_resource_type(const String &p_path) const {
|
||||
|
||||
Reference in New Issue
Block a user