From 7d48cc0f2c536e9e887b8e593bf09e9d94813e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 4 Sep 2018 16:12:27 +0200 Subject: [PATCH] Using type declarations for properties --- __init__.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/__init__.py b/__init__.py index a5d8a2f..72bfcda 100644 --- a/__init__.py +++ b/__init__.py @@ -1247,7 +1247,7 @@ class ARMATURE_OT_blenrig_5_gui(bpy.types.Operator): bl_label = "" bl_idname = "gui.blenrig_5_tabs" - tab = bpy.props.StringProperty(name="Tab", description="Tab of the gui to expand") + tab: bpy.props.StringProperty(name="Tab", description="Tab of the gui to expand") def invoke(self, context, event): arm = bpy.context.active_object.data @@ -1259,24 +1259,24 @@ class ARMATURE_OT_blenrig_5_gui(bpy.types.Operator): # Needed for property registration class Blenrig_5_Props(bpy.types.PropertyGroup): - gui_picker_body_props : bpy.props.BoolProperty(default=True, description="Toggle properties display") - gui_snap_all : bpy.props.BoolProperty(default=False, description="Display ALL Snapping Buttons") - gui_snap : bpy.props.BoolProperty(default=False, description="Display Snapping Buttons") - gui_cust_props_all : bpy.props.BoolProperty(default=False, description="Show ALL Custom Properties") - gui_extra_props_head : bpy.props.BoolProperty(default=False, description="Tweak head extra options") - gui_extra_props_arms : bpy.props.BoolProperty(default=False, description="Tweak arms extra options") - gui_extra_props_fingers : bpy.props.BoolProperty(default=False, description="Tweak fingers extra options") - gui_extra_props_legs : bpy.props.BoolProperty(default=False, description="Tweak legs extra options") - gui_extra_props_accessories : bpy.props.BoolProperty(default=False, description="Tweak accessories options") - gui_face_movement_ranges : bpy.props.BoolProperty(default=False, description="Set limits to facial movement") - gui_face_lip_shaping : bpy.props.BoolProperty(default=False, description="Parameters to define lips curvature") - gui_face_action_toggles : bpy.props.BoolProperty(default=False, description="Toggle facial actions off for editing") - gui_body_ik_rot : bpy.props.BoolProperty(default=False, description="Set the initial rotation of IK bones") - gui_body_auto_move : bpy.props.BoolProperty(default=False, description="Parameters for automated movement") - gui_body_rj : bpy.props.BoolProperty(default=False, description="Simulate how bone thickness affects joint rotation") - gui_body_toggles : bpy.props.BoolProperty(default=False, description="Toggle body parts") - bake_to_shape : bpy.props.BoolProperty(name="Bake to Shape Key", default=False, description="Bake the mesh into a separate Shape Key") - align_selected_only : bpy.props.BoolProperty(name="Selected Bones Only", default=False, description="Perform aligning only on selected bones") + gui_picker_body_props: bpy.props.BoolProperty(default=True, description="Toggle properties display") + gui_snap_all: bpy.props.BoolProperty(default=False, description="Display ALL Snapping Buttons") + gui_snap: bpy.props.BoolProperty(default=False, description="Display Snapping Buttons") + gui_cust_props_all: bpy.props.BoolProperty(default=False, description="Show ALL Custom Properties") + gui_extra_props_head: bpy.props.BoolProperty(default=False, description="Tweak head extra options") + gui_extra_props_arms: bpy.props.BoolProperty(default=False, description="Tweak arms extra options") + gui_extra_props_fingers: bpy.props.BoolProperty(default=False, description="Tweak fingers extra options") + gui_extra_props_legs: bpy.props.BoolProperty(default=False, description="Tweak legs extra options") + gui_extra_props_accessories: bpy.props.BoolProperty(default=False, description="Tweak accessories options") + gui_face_movement_ranges: bpy.props.BoolProperty(default=False, description="Set limits to facial movement") + gui_face_lip_shaping: bpy.props.BoolProperty(default=False, description="Parameters to define lips curvature") + gui_face_action_toggles: bpy.props.BoolProperty(default=False, description="Toggle facial actions off for editing") + gui_body_ik_rot: bpy.props.BoolProperty(default=False, description="Set the initial rotation of IK bones") + gui_body_auto_move: bpy.props.BoolProperty(default=False, description="Parameters for automated movement") + gui_body_rj: bpy.props.BoolProperty(default=False, description="Simulate how bone thickness affects joint rotation") + gui_body_toggles: bpy.props.BoolProperty(default=False, description="Toggle body parts") + bake_to_shape: bpy.props.BoolProperty(name="Bake to Shape Key", default=False, description="Bake the mesh into a separate Shape Key") + align_selected_only: bpy.props.BoolProperty(name="Selected Bones Only", default=False, description="Perform aligning only on selected bones") # BlenRig Armature Tools Operator armature_classes = [