Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-05-20 17:56:22 +0400
committerMatt Ebb <matt@mke3.net>2009-05-20 17:56:22 +0400
commit2e91f1b1555b54784eda5d133d8a3b594d0b8797 (patch)
treeab48c8791ff115246d1baf5c06bf30b9c268011d /release/ui/buttons_data_armature.py
parenta47c673b5525fde6484d4392160fbb5101f2c108 (diff)
Assorted UI tweaks/cleanups
Diffstat (limited to 'release/ui/buttons_data_armature.py')
-rw-r--r--release/ui/buttons_data_armature.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/ui/buttons_data_armature.py b/release/ui/buttons_data_armature.py
index 5a54b4dcc8e..2982ad52a6d 100644
--- a/release/ui/buttons_data_armature.py
+++ b/release/ui/buttons_data_armature.py
@@ -14,7 +14,7 @@ class DATA_PT_skeleton(DataButtonsPanel):
__label__ = "Skeleton"
def draw(self, context):
- arm = context.main.armatures[0]
+ arm = context.active_object.data
layout = self.layout
row = layout.row()
@@ -44,7 +44,7 @@ class DATA_PT_display(DataButtonsPanel):
__label__ = "Display"
def draw(self, context):
- arm = context.main.armatures[0]
+ arm = context.active_object.data
layout = self.layout
split = layout.split()
@@ -65,7 +65,7 @@ class DATA_PT_paths(DataButtonsPanel):
__label__ = "Paths"
def draw(self, context):
- arm = context.main.armatures[0]
+ arm = context.active_object.data
layout = self.layout
split = layout.split()
@@ -95,7 +95,7 @@ class DATA_PT_ghost(DataButtonsPanel):
__label__ = "Ghost"
def draw(self, context):
- arm = context.main.armatures[0]
+ arm = context.active_object.data
layout = self.layout
split = layout.split()