diff options
Diffstat (limited to 'release/scripts/modules/bpy_extras/io_utils.py')
-rw-r--r-- | release/scripts/modules/bpy_extras/io_utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py index 4b28a9edf70..420c2bfc929 100644 --- a/release/scripts/modules/bpy_extras/io_utils.py +++ b/release/scripts/modules/bpy_extras/io_utils.py @@ -127,6 +127,11 @@ def orientation_helper(axis_forward='Y', axis_up='Z'): with specified default values (axes). """ def wrapper(cls): + # 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__"] = {} + def _update_axis_forward(self, context): if self.axis_forward[-1] == self.axis_up[-1]: self.axis_up = (self.axis_up[0:-1] + |