Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-12 16:21:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-12 16:22:55 +0300
commit415018778ccc53ccca37019c5eb88276a76c1fe8 (patch)
tree119b71208eb4f29be7d333751137b8d9ce6e1e89 /source/blender
parent69b7ae839744b63ef6812bf2d1ce72f2ce4e64dc (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')
-rw-r--r--source/blender/python/intern/bpy_rna.c2
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",