mirror of https://github.com/godotengine/godot
Fix conversion plugin search showing errors on `TextFile` and `OtherFile`.
This commit is contained in:
parent
4ce466d7fa
commit
e127093fe8
|
|
@ -6574,7 +6574,7 @@ Vector<Ref<EditorResourceConversionPlugin>> EditorNode::find_resource_conversion
|
|||
Vector<Ref<EditorResourceConversionPlugin>> EditorNode::find_resource_conversion_plugin_for_type_name(const String &p_type) {
|
||||
Vector<Ref<EditorResourceConversionPlugin>> ret;
|
||||
|
||||
if (ClassDB::can_instantiate(p_type)) {
|
||||
if (ClassDB::class_exists(p_type) && ClassDB::can_instantiate(p_type)) {
|
||||
Ref<Resource> temp = Object::cast_to<Resource>(ClassDB::instantiate(p_type));
|
||||
if (temp.is_valid()) {
|
||||
for (Ref<EditorResourceConversionPlugin> resource_conversion_plugin : resource_conversion_plugins) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue