From 5ad217fe0acc8433cd6dbdffd77f18626c90c69e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 5 Dec 2018 20:52:47 +0100 Subject: 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. --- release/scripts/modules/bpy_extras/io_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/scripts/modules/bpy_extras') 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]: -- cgit v1.2.3