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.
This commit is contained in:
Bastien Montagne 2018-12-05 20:52:47 +01:00
parent 9fa8c01f6b
commit 5ad217fe0a
1 changed files with 1 additions and 1 deletions

View File

@ -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]: