Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2022-11-04 14:25:37 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2022-11-04 14:25:58 +0300
commit85c414a2023c1fdf16b6f3c9dc462fe242a625b9 (patch)
tree30698ee3ded397cca66bff5b6071f91483982237 /rigify/utils/metaclass.py
parent5a818af95080cccf04dfa8317f0e966bff515c64 (diff)
Rigify: cleanup PyCharm warning highlights in base_rig.py
Also declare stage names for auto-completion.
Diffstat (limited to 'rigify/utils/metaclass.py')
-rw-r--r--rigify/utils/metaclass.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/rigify/utils/metaclass.py b/rigify/utils/metaclass.py
index c8054d7f..1b10f385 100644
--- a/rigify/utils/metaclass.py
+++ b/rigify/utils/metaclass.py
@@ -114,6 +114,11 @@ class StagedMetaclass(type):
def make_stage_decorators(self):
return [(name, rigify_stage(name)) for name in self.rigify_stages]
+ def stage_decorator_container(self, cls):
+ for name, stage in self.make_stage_decorators():
+ setattr(cls, name, stage)
+ return cls
+
class BaseStagedClass(object, metaclass=StagedMetaclass):
rigify_sub_objects = tuple()