[Bf-blender-cvs] [e228574417e] blender2.8: PyAPI: correct term for class property warning

Campbell Barton noreply at git.blender.org
Thu Sep 20 06:43:00 CEST 2018


Commit: e228574417e66436c682e120c916bd21f292feda
Author: Campbell Barton
Date:   Thu Sep 20 14:55:07 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBe228574417e66436c682e120c916bd21f292feda

PyAPI: correct term for class property warning

===================================================================

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 2e606cd9514..9703114016a 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -7461,12 +7461,12 @@ static int pyrna_deferred_register_props(StructRNA *srna, PyObject *class_dict)
 			if (pyrna_is_deferred_prop(item)) {
 				if (!has_warning) {
 					printf("Warning: class %.200s "
-					       "contains a properties which should be a field!\n",
+					       "contains a properties which should be an annotation!\n",
 					       RNA_struct_identifier(srna));
 					PyC_LineSpit();
 					has_warning = true;
 				}
-				printf("    make field: %.200s.%.200s\n",
+				printf("    make annotation: %.200s.%.200s\n",
 				       RNA_struct_identifier(srna), _PyUnicode_AsString(key));
 			}
 			ret = deferred_register_prop(srna, key, item);



More information about the Bf-blender-cvs mailing list