Request to use load when cyclic reference is found, closes #26119
This commit is contained in:
parent
87b303aa95
commit
d13ac2a413
@ -503,7 +503,7 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
|
|||||||
|
|
||||||
Ref<GDScript> gds = res;
|
Ref<GDScript> gds = res;
|
||||||
if (gds.is_valid() && !gds->is_valid()) {
|
if (gds.is_valid() && !gds->is_valid()) {
|
||||||
_set_error("Could not fully preload the script, possible cyclic reference or compilation error.");
|
_set_error("Could not fully preload the script, possible cyclic reference or compilation error. Use 'load()' instead if a cyclic reference is intended.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user