diff options
author | Lucio Rossi <lucio.rossi75@gmail.com> | 2017-06-08 21:24:52 +0300 |
---|---|---|
committer | Lucio Rossi <lucio.rossi75@gmail.com> | 2017-06-08 21:25:26 +0300 |
commit | 4ea8e752d0d8af195bc6d4d0725ba62513c2ff48 (patch) | |
tree | 32c2fcd44070577df585d65df68c1bfafcba3b84 /rigify/__init__.py | |
parent | 85b44a34f7c0eaebf67a8d65bb234523a9262d5d (diff) |
Rigify 0.5 metarig fixes, advanced generation options, code cleanup
Diffstat (limited to 'rigify/__init__.py')
-rw-r--r-- | rigify/__init__.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/rigify/__init__.py b/rigify/__init__.py index 2e7953b1..2b065092 100644 --- a/rigify/__init__.py +++ b/rigify/__init__.py @@ -286,6 +286,24 @@ def register(): IDStore.rigify_types = bpy.props.CollectionProperty(type=RigifyName) IDStore.rigify_active_type = bpy.props.IntProperty(name="Rigify Active Type", description="The selected rig type") + IDStore.rigify_advanced_generation = bpy.props.BoolProperty(name="Rigify Advanced Generation", + description="Rigify Advanced Generation Parameters", + default=False) + + IDStore.rigify_force_widget_update = bpy.props.BoolProperty(name="Force Widget Update", + description="Rigify Force Widget Update", + default=False) + + IDStore.rigify_target_rigs = bpy.props.CollectionProperty(type=RigifyName) + IDStore.rigify_target_rig = bpy.props.StringProperty(name="Rigify Target Rig", + description="The Rig, Generate will run upon", + default="") + + IDStore.rigify_rig_uis = bpy.props.CollectionProperty(type=RigifyName) + IDStore.rigify_rig_ui = bpy.props.StringProperty(name="Rigify Target Rig UI", + description="The Rig UI to overwrite", + default="") + if (ui and 'legacy' in str(ui)) or bpy.context.user_preferences.addons['rigify'].preferences.legacy_mode: # update legacy on restart or reload bpy.context.user_preferences.addons['rigify'].preferences.legacy_mode = True @@ -307,6 +325,12 @@ def unregister(): del IDStore.rigify_collection del IDStore.rigify_types del IDStore.rigify_active_type + del IDStore.rigify_advanced_generation + del IDStore.rigify_force_widget_update + del IDStore.rigify_target_rig + del IDStore.rigify_target_rigs + del IDStore.rigify_rig_uis + del IDStore.rigify_rig_ui bpy.utils.unregister_class(RigifyName) bpy.utils.unregister_class(RigifyParameters) |