diff options
author | Nathan Vegdahl <cessen@cessen.com> | 2013-02-16 23:35:26 +0400 |
---|---|---|
committer | Nathan Vegdahl <cessen@cessen.com> | 2013-02-16 23:35:26 +0400 |
commit | 47b467eb42d4a8ec7041c98e13653f481cf56597 (patch) | |
tree | 6cae6dbdca8e562aca1d0aae9620b03597c6ce6b /rigify/ui.py | |
parent | 21e99d0bd6b6a71cbf871cc4aaf6f2b744cd3d14 (diff) |
Rigify: changed rig type API. Disabled delta rig type.
I have updated the rig type API to be a bit clearer based on my
interactions with Kfir from PitchiPoy.
I've also disabled the "delta" rig type, as it is very obscure and
mostly just confuses people.
Diffstat (limited to 'rigify/ui.py')
-rw-r--r-- | rigify/ui.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rigify/ui.py b/rigify/ui.py index f2a88a12..e33f462f 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -185,15 +185,15 @@ class BONE_PT_rigify_buttons(bpy.types.Panel): box.label(text="ALERT: type \"%s\" does not exist!" % rig_name) else: try: - rig.Rig.parameters_ui + rig.parameters_ui except AttributeError: - pass + col = layout.column() + col.label(text="No options") else: col = layout.column() col.label(text="Options:") box = layout.box() - - rig.Rig.parameters_ui(box, C.active_object, bone.name) + rig.parameters_ui(box, bone.rigify_parameters) #~ class INFO_MT_armature_metarig_add(bpy.types.Menu): @@ -290,10 +290,10 @@ class Sample(bpy.types.Operator): use_global_undo = context.user_preferences.edit.use_global_undo context.user_preferences.edit.use_global_undo = False try: - rig = get_rig_type(self.metarig_type).Rig + rig = get_rig_type(self.metarig_type) create_sample = rig.create_sample except (ImportError, AttributeError): - print("Rigify: rig type has no sample.") + raise Exception("rig type '" + self.metarig_type + "' has no sample.") else: create_sample(context.active_object) finally: |