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>2021-02-18 07:45:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-18 18:19:53 +0300
commitafa5da9ce02bcd46f70d250943a933afe6de1d59 (patch)
tree508edec15709726e08f759678cf42c39e5b11d5b /source/blender/python
parent9df92691730a78a0bd13fea8717479e2b2055bb0 (diff)
Cleanup: remove check for non-annotation properties in classes
This was added to assist upgrading scripts to Blender 2.8x, now 2.9x is released there is no need to keep this block.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_rna.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index c0f3ba30d93..4dfdba7758c 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -7977,31 +7977,6 @@ static int pyrna_deferred_register_props(StructRNA *srna, PyObject *class_dict)
}
}
- if (ret == 0) {
- /* This block can be removed once 2.8x is released and annotations are in use. */
- bool has_warning = false;
- while (PyDict_Next(class_dict, &pos, &key, &item)) {
- if (pyrna_is_deferred_prop(item)) {
- if (!has_warning) {
- printf(
- "Warning: class %.200s "
- "contains a property which should be an annotation!\n",
- RNA_struct_identifier(srna));
- PyC_LineSpit();
- has_warning = true;
- }
- printf(" assign as a type annotation: %.200s.%.200s\n",
- RNA_struct_identifier(srna),
- PyUnicode_AsUTF8(key));
- }
- ret = deferred_register_prop(srna, key, item);
-
- if (ret != 0) {
- break;
- }
- }
- }
-
return ret;
}