diff options
author | Thomas Larsson <thomas_larsson_01@hotmail.com> | 2012-06-01 16:59:39 +0400 |
---|---|---|
committer | Thomas Larsson <thomas_larsson_01@hotmail.com> | 2012-06-01 16:59:39 +0400 |
commit | 4be5a985aec3003dbf137ac79aa045a95ede290e (patch) | |
tree | 0933838ebe7cca9ce859770d58c96a8e52e0c467 /io_import_scene_mhx.py | |
parent | 3596761d10e522799d51ce70a38d505a45bce106 (diff) |
Mhx importer. Rigs other than the mhx rig can now access the MHX Drivers panel. Drivers for facial shapes are located there.
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r-- | io_import_scene_mhx.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index 0f9d8675..79fe4c2f 100644 --- a/io_import_scene_mhx.py +++ b/io_import_scene_mhx.py @@ -3954,7 +3954,7 @@ class MhxFKIKPanel(bpy.types.Panel): @classmethod def poll(cls, context): - return pollMhxRig(context.object) + return (mhxRigName(context.object) == 'MHX') def draw(self, context): rig = context.object @@ -4035,7 +4035,7 @@ class MhxDriversPanel(bpy.types.Panel): @classmethod def poll(cls, context): - return pollMhxRig(context.object) + return mhxRigName(context.object) def draw(self, context): lProps = [] @@ -4083,7 +4083,7 @@ class MhxVisibilityPanel(bpy.types.Panel): @classmethod def poll(cls, context): - return pollMhxRig(context.object) + return mhxRigName(context.object) def draw(self, context): ob = context.object @@ -4205,7 +4205,7 @@ class MhxLayersPanel(bpy.types.Panel): @classmethod def poll(cls, context): - return pollMhxRig(context.object) + return (mhxRigName(context.object) == 'MHX') def draw(self, context): layout = self.layout @@ -4262,11 +4262,11 @@ class VIEW3D_OT_MhxDisableAllLayersButton(bpy.types.Operator): # getMhxRig(ob): # -def pollMhxRig(ob): +def mhxRigName(ob): try: - return (ob["MhxRig"] == "MHX") + return ob["MhxRig"] except: - return False + return None def getMhxRig(ob): if ob.type == 'ARMATURE': |