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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-12-05 22:52:47 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-12-05 22:54:02 +0300
commit5ad217fe0acc8433cd6dbdffd77f18626c90c69e (patch)
tree13e5b844f4bd30e966f424c192e6b4d625877166 /release/scripts/modules/bpy_extras/io_utils.py
parent9fa8c01f6bdce150da750a53f59f947d65707ccc (diff)
Fix own mistake in recent rB74361eebe68c.
One cannot assign to Class.__dict__, that is not a 'real' dictionnary... Thanks to @JacquesLucke for noting the issue.
Diffstat (limited to 'release/scripts/modules/bpy_extras/io_utils.py')
-rw-r--r--release/scripts/modules/bpy_extras/io_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py
index 420c2bfc929..d7cca7cc896 100644
--- a/release/scripts/modules/bpy_extras/io_utils.py
+++ b/release/scripts/modules/bpy_extras/io_utils.py
@@ -130,7 +130,7 @@ def orientation_helper(axis_forward='Y', axis_up='Z'):
# Without that, we may end up adding those fields to some **parent** class' __annotations__ property
# (like the ImportHelper or ExportHelper ones)! See T58772.
if "__annotations__" not in cls.__dict__:
- cls.__dict__["__annotations__"] = {}
+ setattr(cls, "__annotations__", {})
def _update_axis_forward(self, context):
if self.axis_forward[-1] == self.axis_up[-1]: