You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Fix infinite recursion with editor import plugins
(cherry picked from commit 95f7879923)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
d54ac732ae
commit
eb5e5200cc
@@ -74,14 +74,14 @@ String EditorImportPlugin::get_resource_type() const {
|
|||||||
|
|
||||||
float EditorImportPlugin::get_priority() const {
|
float EditorImportPlugin::get_priority() const {
|
||||||
if (!(get_script_instance() && get_script_instance()->has_method("get_priority"))) {
|
if (!(get_script_instance() && get_script_instance()->has_method("get_priority"))) {
|
||||||
return EditorImportPlugin::get_priority();
|
return ResourceImporter::get_priority();
|
||||||
}
|
}
|
||||||
return get_script_instance()->call("get_priority");
|
return get_script_instance()->call("get_priority");
|
||||||
}
|
}
|
||||||
|
|
||||||
int EditorImportPlugin::get_import_order() const {
|
int EditorImportPlugin::get_import_order() const {
|
||||||
if (!(get_script_instance() && get_script_instance()->has_method("get_import_order"))) {
|
if (!(get_script_instance() && get_script_instance()->has_method("get_import_order"))) {
|
||||||
return EditorImportPlugin::get_import_order();
|
return ResourceImporter::get_import_order();
|
||||||
}
|
}
|
||||||
return get_script_instance()->call("get_import_order");
|
return get_script_instance()->call("get_import_order");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user