Make add_property error more explicit on duplicates

Would have helped solve #23800 faster.
This commit is contained in:
Rémi Verschelde 2018-11-20 08:47:21 +01:00
parent e3d47916d5
commit 99a4274f51

View file

@ -936,9 +936,8 @@ void ClassDB::add_property(StringName p_class, const PropertyInfo &p_pinfo, cons
}
#ifdef DEBUG_METHODS_ENABLED
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();
}
#endif