From 47b467eb42d4a8ec7041c98e13653f481cf56597 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Sat, 16 Feb 2013 19:35:26 +0000 Subject: 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. --- rigify/ui.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rigify/ui.py') 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: -- cgit v1.2.3