mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
GDScript: solve _populate_class_members() cyclic dependency problem
This commit is contained in:
parent
443820686c
commit
7d29ac0bf2
2 changed files with 10 additions and 5 deletions
|
|
@ -787,11 +787,11 @@ Error GDScript::reload(bool p_keep_state) {
|
|||
err = compiler.compile(&parser, this, p_keep_state);
|
||||
|
||||
if (err) {
|
||||
_err_print_error("GDScript::reload", path.is_empty() ? "built-in" : (const char *)path.utf8().get_data(), compiler.get_error_line(), ("Compile Error: " + compiler.get_error()).utf8().get_data(), false, ERR_HANDLER_SCRIPT);
|
||||
if (can_run) {
|
||||
if (EngineDebugger::is_active()) {
|
||||
GDScriptLanguage::get_singleton()->debug_break_parse(_get_debug_path(), compiler.get_error_line(), "Parser Error: " + compiler.get_error());
|
||||
}
|
||||
_err_print_error("GDScript::reload", path.is_empty() ? "built-in" : (const char *)path.utf8().get_data(), compiler.get_error_line(), ("Compile Error: " + compiler.get_error()).utf8().get_data(), false, ERR_HANDLER_SCRIPT);
|
||||
reloading = false;
|
||||
return ERR_COMPILATION_FAILED;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue