Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
powroupi committed Jul 18, 2020
1 parent 5ee36c6 commit c1ca27d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mmd_tools/core/shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def __morph_node_add(cls, material, morph, prev_node):
shader = nodes.get('mmd_shader', None)
if morph:
node = nodes.new('ShaderNodeGroup')
node.parent = getattr(shader, 'parent', None)
node.location = (-250, 0)
node.node_tree = cls.__get_shader('Add' if morph.offset_type == 'ADD' else 'Mul')
cls.__update_node_inputs(node, morph)
Expand Down
2 changes: 1 addition & 1 deletion mmd_tools/panels/view_prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __draw_IK_toggle(self, armature):
if any(all(x) for x in zip(ik.bone.layers, armature.data.layers)):
px, py, pz = -ik.bone.head_local/base
bx, by, bz = -b.head_local/base*0.15
groups.setdefault((int(pz), int(bz), -cnt), set()).add(((px, -py, bx), ik)) # (px, pz, -py, bx, bz, -by)
groups.setdefault((int(pz), int(bz), int(px**2), -cnt), set()).add(((px, -py, bx), ik)) # (px, pz, -py, bx, bz, -by)
layout = self.layout.box().column()
for _, group in sorted(groups.items()):
row = layout.row()
Expand Down

0 comments on commit c1ca27d

Please sign in to comment.