summaryrefslogtreecommitdiffstats
path: root/graphics/Blender/PyRNA-python3.7.diff
diff options
context:
space:
mode:
author Christoph Willing2019-07-31 13:31:26 +0200
committer Willy Sudiarto Raharjo2019-08-03 02:54:50 +0200
commite90f04f95c58a43dba3f9bd3992dbaa48068444a (patch)
treef107e93c5bf2d410bf059d1c898cf16c95f37bf2 /graphics/Blender/PyRNA-python3.7.diff
parent6158da7ffd7e34348b0840c592fe5734520e1424 (diff)
downloadslackbuilds-e90f04f95c58a43dba3f9bd3992dbaa48068444a.tar.gz
graphics/Blender: Updated for version 2.80
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Diffstat (limited to 'graphics/Blender/PyRNA-python3.7.diff')
-rw-r--r--graphics/Blender/PyRNA-python3.7.diff35
1 files changed, 0 insertions, 35 deletions
diff --git a/graphics/Blender/PyRNA-python3.7.diff b/graphics/Blender/PyRNA-python3.7.diff
deleted file mode 100644
index ac5f72e474..0000000000
--- a/graphics/Blender/PyRNA-python3.7.diff
+++ /dev/null
@@ -1,35 +0,0 @@
-commit 1db47a2ccd1e68994bf8140eba6cc2a26a2bc91f
-Author: Campbell Barton <ideasman42@gmail.com>
-Date: Thu Jul 12 08:28:06 2018 +0200
-
- Fix PyRNA class registration w/ Python 3.7
-
- In Python3.7 this now raises an error.
-
-diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
-index 9052b6f580a..80b0aa7a51b 100644
---- a/source/blender/python/intern/bpy_rna.c
-+++ b/source/blender/python/intern/bpy_rna.c
-@@ -7577,10 +7577,12 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr, StructRNA *srna, v
- if (!(flag & PROP_REGISTER))
- continue;
-
-+ /* TODO(campbell): Use Python3.7x _PyObject_LookupAttr(), also in the macro below. */
- identifier = RNA_property_identifier(prop);
- item = PyObject_GetAttrString(py_class, identifier);
-
- if (item == NULL) {
-+ PyErr_Clear();
- /* Sneaky workaround to use the class name as the bl_idname */
-
- #define BPY_REPLACEMENT_STRING(rna_attr, py_attr) \
-@@ -7596,6 +7598,9 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr, StructRNA *srna, v
- } \
- Py_DECREF(item); \
- } \
-+ else { \
-+ PyErr_Clear(); \
-+ } \
- } /* intentionally allow else here */
-
- if (false) {} /* needed for macro */