Skip to content

Commit

Permalink
Version 0.6.1
Browse files Browse the repository at this point in the history
- Fix to feet on ground for sync-pose
  • Loading branch information
Palmer-JC committed Aug 27, 2019
1 parent 92be074 commit 13e4be1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Binary file modified blender_distribution/MH_Community_for_blender_280.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions blender_source/MH_Community/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
bl_info = {
"name": "MH Community Plug-in",
"author": "Joel Palmius",
"version": (0, 6),
"version": (0, 6, 1),
"blender": (2, 80, 0),
"location": "View3D > Properties > MH",
"description": "MakeHuman interactive operations",
"wiki_url": "https://github.com/makehumancommunity/makehuman-plugin-for-blender",
"category": "MakeHuman"}

print("Loading MH community plug-in v %d.%d" % bl_info["version"])
print("Loading MH community plug-in v %d.%d.%d" % bl_info["version"])
from . import mh_sync # directory
from . import mocap # directory
from . import separate_eyes
Expand All @@ -32,7 +32,7 @@

#===============================================================================
class MHC_PT_Community_Panel(bpy.types.Panel):
bl_label = "MakeHuman v %d.%d" % bl_info["version"]
bl_label = "MakeHuman v %d.%d.%d" % bl_info["version"]
bl_space_type = "VIEW_3D"
bl_region_type = BLENDER_REGION
bl_category = "MakeHuman"
Expand Down
9 changes: 1 addition & 8 deletions blender_source/MH_Community/mh_sync/sync_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def __init__(self):

self.skeleton = bpy.context.active_object
self.rigInfo = RigInfo.determineRig(self.skeleton)
self.feetOnGround = self.rigInfo.hasFeetOnGround()
self.unitMultplier = self.rigInfo.unitMultplierToExported()
self.unitMultplier = self.rigInfo.unitMultplierToExported() / 10 # makehuman is internally in decimeters

self.bones = self.skeleton.pose.bones
self.haveDots = self.bonesHaveDots()
Expand Down Expand Up @@ -66,12 +65,6 @@ def callback(self,json_obj):
bpy.ops.pose.transforms_clear()
self.selectFaceBones()

#feet on Ground processing
if self.feetOnGround:
self.rootBone.location[0] = 0
self.rootBone.location[1] = 0
self.rootBone.location[2] = 0

self.callBackComplete = time.time()

def apply(self, bone, json_obj, MhNoLocation):
Expand Down

0 comments on commit 13e4be1

Please sign in to comment.