Fix broken Pie menus addon after recent changes

__annotations__ is not a class property, definition its
members as annotations is kine of recursive meta..

This reverts part of aeabdc02 and fixes Pie menus addon
which animators are using a lot here in the studio.
This commit is contained in:
Sergey Sharybin 2019-01-18 10:51:42 +01:00
parent aeabdc02a8
commit e6b7852efb
1 changed files with 2 additions and 2 deletions

View File

@ -176,13 +176,13 @@ class PieToolsPreferences(AddonPreferences):
return update
use_prop_name = 'use_' + mod_name
__annotations__[use_prop_name]: BoolProperty(
__annotations__[use_prop_name] = BoolProperty(
name=mod.bl_info['name'],
description=mod.bl_info.get('description', ''),
update=gen_update(mod, use_prop_name),
)
__annotations__['show_expanded_' + mod_name]: BoolProperty()
__annotations__['show_expanded_' + mod_name] = BoolProperty()
def draw(self, context):
layout = self.layout