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",

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to