Skip to content

Commit 2149682

Browse files
committed
Merge pull request godotengine#92216 from dsnopek/runtime-classes-err-print-once
Don't use `ERR_PRINT_ONCE()` for runtime class error because it will hide errors
2 parents 9d792dd + 62f9365 commit 2149682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/object/class_db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ Object *ClassDB::_instantiate_internal(const StringName &p_class, bool p_require
522522
#ifdef TOOLS_ENABLED
523523
if (!p_require_real_class && ti->is_runtime && Engine::get_singleton()->is_editor_hint()) {
524524
if (!ti->inherits_ptr || !ti->inherits_ptr->creation_func) {
525-
ERR_PRINT_ONCE(vformat("Cannot make a placeholder instance of runtime class %s because its parent cannot be constructed.", ti->name));
525+
ERR_PRINT(vformat("Cannot make a placeholder instance of runtime class %s because its parent cannot be constructed.", ti->name));
526526
} else {
527527
ObjectGDExtension *extension = get_placeholder_extension(ti->name);
528528
return (Object *)extension->create_instance(extension->class_userdata);

0 commit comments

Comments
 (0)