Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Revert "mgear_core: applyop stretch: component using squash stretch s…
Browse files Browse the repository at this point in the history
…olver explodes when max stretch above 1.5 Fixes #30"

This reverts commit ebad733.
  • Loading branch information
miquelcampos committed Apr 4, 2019
1 parent 32bd822 commit c8df91e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/mgear/core/applyop.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#############################################
import pymel.core as pm
from pymel.core import datatypes
from mgear.core import node as nod

#############################################
# BUILT IN NODES
Expand Down Expand Up @@ -641,11 +640,7 @@ def gear_squashstretch2_op(out,
# osx
# Also helper connection for scale compensation (scaleComp)
mult_node = pm.createNode("multiplyDivide")
clamp_node = nod.createClampNode(
[node.outputX, node.outputY, node.outputZ],
[0.001, 0.001, 0.001],
[100000, 100000, 100000])
pm.connectAttr(clamp_node + ".output", mult_node + ".input1")
pm.connectAttr(node + ".output", mult_node + ".input1")
for axis in "XYZ":
pm.connectAttr(mult_node + ".output%s" % axis, out + ".scale%s" % axis)
if scaleComp:
Expand Down

0 comments on commit c8df91e

Please sign in to comment.