浏览代码

Make add_property error more explicit on duplicates

Would have helped solve #23800 faster.
Rémi Verschelde 6 年之前
父节点
当前提交
99a4274f51
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      core/class_db.cpp

+ 1 - 2
core/class_db.cpp

@@ -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