summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-21 23:19:09 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-21 23:19:09 +0200
commit214968243c442c0fdcbdfef23943c1547aeafdbc (patch)
tree2901ec02c1e767841506560e0de8f808a7172564
parent9d792dd4dc304768f5c94432b111bfbaac0b5aba (diff)
parent62f9365b21f3e9c30897fbe24aa898005a8972a6 (diff)
downloadredot-engine-214968243c442c0fdcbdfef23943c1547aeafdbc.tar.gz
Merge pull request #92216 from dsnopek/runtime-classes-err-print-once
Don't use `ERR_PRINT_ONCE()` for runtime class error because it will hide errors
-rw-r--r--core/object/class_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/class_db.cpp b/core/object/class_db.cpp
index e25703b93f..3d93ce8e73 100644
--- a/core/object/class_db.cpp
+++ b/core/object/class_db.cpp
@@ -522,7 +522,7 @@ Object *ClassDB::_instantiate_internal(const StringName &p_class, bool p_require
#ifdef TOOLS_ENABLED
if (!p_require_real_class && ti->is_runtime && Engine::get_singleton()->is_editor_hint()) {
if (!ti->inherits_ptr || !ti->inherits_ptr->creation_func) {
- ERR_PRINT_ONCE(vformat("Cannot make a placeholder instance of runtime class %s because its parent cannot be constructed.", ti->name));
+ ERR_PRINT(vformat("Cannot make a placeholder instance of runtime class %s because its parent cannot be constructed.", ti->name));
} else {
ObjectGDExtension *extension = get_placeholder_extension(ti->name);
return (Object *)extension->create_instance(extension->class_userdata);