Make add_property error more explicit on duplicates
Would have helped solve #23800 faster.
This commit is contained in:
parent
e3d47916d5
commit
99a4274f51
1 changed files with 1 additions and 2 deletions
|
@ -936,9 +936,8 @@ void ClassDB::add_property(StringName p_class, const PropertyInfo &p_pinfo, cons
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_METHODS_ENABLED
|
#ifdef DEBUG_METHODS_ENABLED
|
||||||
|
|
||||||
if (type->property_setget.has(p_pinfo.name)) {
|
if (type->property_setget.has(p_pinfo.name)) {
|
||||||
ERR_EXPLAIN("Object already has property: " + p_class);
|
ERR_EXPLAIN("Object " + p_class + " already has property: " + p_pinfo.name);
|
||||||
ERR_FAIL();
|
ERR_FAIL();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue