Skip to content

Commit 54fcd71

Browse files
committed
Shifter: Lite_chain_01: When Neutral Pose is not active, the build is not correct. This issue was introduced with the mirror option added in the last update
Fixes #619
1 parent 0802484 commit 54fcd71

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • release/scripts/mgear/shifter_classic_components/lite_chain_01

‎release/scripts/mgear/shifter_classic_components/lite_chain_01/__init__.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,19 @@ def addObjects(self):
6363
transform.getPositionFromMatrix(t))
6464

6565
dist = vector.getDistance(self.guide.apos[i], self.guide.apos[i + 1])
66+
tctl = t
6667
if self.settings["mirrorBehaviour"] and self.negate:
6768
dist = dist * -1
6869
rot_offset = [180, 180, 0]
69-
tnpo = transform.setMatrixScale(t, [-1, -1, -1])
70+
tnpo = transform.setMatrixScale(tnpo, [-1, -1, -1])
71+
tctl = transform.setMatrixScale(t, [-1, -1, -1])
7072

7173
fk_npo = primitive.addTransform(
7274
parent, self.getName("fk%s_npo" % i), tnpo)
7375
fk_ctl = self.addCtl(
7476
fk_npo,
7577
"fk%s_ctl" % i,
76-
tnpo,
78+
tctl,
7779
self.color_fk,
7880
"cube",
7981
w=dist,

0 commit comments

Comments
 (0)