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:
authorCampbell Barton <ideasman42@gmail.com>2011-07-11 02:57:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-11 02:57:27 +0400
commit488e1da935d55330be55eb30b4605b993dd65dbd (patch)
treed4437d5e74e962482a4a6aa5336212c257f0245e /rigify/ui.py
parent8012053e1e178c8cabb133e05dc1e36d52908fa7 (diff)
cleanup
- remove/comment unused variables - remove unused imports - fixed some bugs using incorrect variables
Diffstat (limited to 'rigify/ui.py')
-rw-r--r--rigify/ui.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/rigify/ui.py b/rigify/ui.py
index 3a2e89e3..7551ce86 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -21,7 +21,6 @@ from bpy.props import *
import rigify
from rigify.utils import get_rig_type
from rigify import generate
-from rna_prop_ui import rna_idprop_ui_prop_get
class DATA_PT_rigify_buttons(bpy.types.Panel):
@@ -58,7 +57,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
id_store.rigify_types.remove(0)
for r in rigify.rig_list:
- collection = r.split('.')[0]
+ # collection = r.split('.')[0] # UNUSED
if collection_name == "All":
a = id_store.rigify_types.add()
a.name = r
@@ -95,13 +94,12 @@ class DATA_PT_rigify_layer_names(bpy.types.Panel):
return True
def draw(self, context):
- C = context
layout = self.layout
obj = context.object
# Ensure that the layers exist
for i in range(1 + len(obj.data.rigify_layers), 29):
- layer = obj.data.rigify_layers.add()
+ obj.data.rigify_layers.add()
# UI
for i in range(28):
@@ -151,7 +149,7 @@ class BONE_PT_rigify_buttons(bpy.types.Panel):
id_store.rigify_types.remove(0)
for r in rigify.rig_list:
- collection = r.split('.')[0]
+ # collection = r.split('.')[0] # UNUSED
if collection_name == "All":
a = id_store.rigify_types.add()
a.name = r