From 62f9365b21f3e9c30897fbe24aa898005a8972a6 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Tue, 21 May 2024 13:55:56 -0500 Subject: [PATCH] Don't use `ERR_PRINT_ONCE()` for runtime class error because it will hide errors --- core/object/class_db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/object/class_db.cpp b/core/object/class_db.cpp index e25703b93fb..3d93ce8e735 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);