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-13 00:54:17 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2022-11-13 16:23:29 +0300
commit01e8af3348fac2babe3b5218dbe4ecdaa0e1eace (patch)
tree3a6239133282569da143ce22bda34f14f98af473 /rigify/operators/action_layers.py
parent68419fb3659f09e8447d351a25b1bd8e56211a5a (diff)
Rigify: annotate and fix warnings in basic rig components.HEADmaster
Introduce a method to annotate types and names of entries in the `bones` container of rig components and apply it, and other type annotations, to a number of not very complex rig classes. - Introduce BaseRigMixin as a typed base class for mixins intended for use in rig classes (using BaseRig as a parent causes issues). - Introduce TypedBoneDict that does not suppress the unknown attribute analysis in PyCharm, and use it in a system of subclasses to annotate the bones in various rigs. BaseBoneDict is necessary because the annotation affects all subclasses, so TypedBoneDict cannot inherit from BoneDict with the annotation. - Add or adjust other type annotations of rig methods and utilities. - Fix other warnings, e.g. undeclared attributes, excessively long lines, whitespace style issues and typos.
Diffstat (limited to 'rigify/operators/action_layers.py')
-rw-r--r--rigify/operators/action_layers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rigify/operators/action_layers.py b/rigify/operators/action_layers.py
index c089722a..b81ac0ef 100644
--- a/rigify/operators/action_layers.py
+++ b/rigify/operators/action_layers.py
@@ -119,21 +119,21 @@ class ActionSlot(PropertyGroup, ActionSlotBase):
trans_min: FloatProperty(
name="Min",
default=-0.05,
- description="Value that the transformation value must reach to put the action's timeline"
+ description="Value that the transformation value must reach to put the action's timeline "
"to the first frame. Rotations are in degrees"
)
trans_max: FloatProperty(
name="Max",
default=0.05,
- description="Value that the transformation value must reach to put the action's timeline"
+ description="Value that the transformation value must reach to put the action's timeline "
"to the last frame. Rotations are in degrees"
)
is_corrective: BoolProperty(
name="Corrective",
- description="Indicate that this is a corrective action. Corrective actions will activate"
- "based on the activation of two other actions (using End Frame if both inputs"
+ description="Indicate that this is a corrective action. Corrective actions will activate "
+ "based on the activation of two other actions (using End Frame if both inputs "
"are at their End Frame, and Start Frame if either is at Start Frame)"
)