PyAPI: show line, not call-stack for field warning

Was too noisy and hard to tell warnings from exceptions.
This commit is contained in:
2018-07-12 15:21:39 +02:00
parent 69b7ae8397
commit 415018778c

View File

@@ -7446,10 +7446,10 @@ static int pyrna_deferred_register_props(StructRNA *srna, PyObject *class_dict)
while (PyDict_Next(class_dict, &pos, &key, &item)) {
if (pyrna_is_deferred_prop(item)) {
if (!has_warning) {
PyC_StackSpit();
printf("Warning: class %.200s "
"contains a properties which should be a field!\n",
RNA_struct_identifier(srna));
PyC_LineSpit();
has_warning = true;
}
printf(" make field: %.200s.%.200s\n",