diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-12 16:21:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-12 16:22:55 +0300 |
commit | 415018778ccc53ccca37019c5eb88276a76c1fe8 (patch) | |
tree | 119b71208eb4f29be7d333751137b8d9ce6e1e89 /source/blender/python | |
parent | 69b7ae839744b63ef6812bf2d1ce72f2ce4e64dc (diff) |
PyAPI: show line, not call-stack for field warning
Was too noisy and hard to tell warnings from exceptions.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |