[Bf-blender-cvs] [415018778cc] blender2.8: PyAPI: show line, not call-stack for field warning
Campbell Barton
noreply at git.blender.org
Thu Jul 12 15:23:04 CEST 2018
Commit: 415018778ccc53ccca37019c5eb88276a76c1fe8
Author: Campbell Barton
Date: Thu Jul 12 15:21:39 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB415018778ccc53ccca37019c5eb88276a76c1fe8
PyAPI: show line, not call-stack for field warning
Was too noisy and hard to tell warnings from exceptions.
===================================================================
M source/blender/python/intern/bpy_rna.c
===================================================================
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index 36df7c25867..b288e311633 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -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",
More information about the Bf-blender-cvs
mailing list