From 34ab1a62fa32c4e7b4b5505490556ab4beaea23a Mon Sep 17 00:00:00 2001 From: David Valdman Date: Tue, 18 Oct 2016 22:17:08 -0400 Subject: [PATCH] Fix scale API in transtion.interpret --- samsara/core/Transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samsara/core/Transform.js b/samsara/core/Transform.js index 62e7b6e..097d447 100644 --- a/samsara/core/Transform.js +++ b/samsara/core/Transform.js @@ -533,7 +533,7 @@ define(function(require, exports, module) { var R = Transform.compose(Q, T); //remove negative scaling - var remover = Transform.scale(R[0] < 0 ? -1 : 1, R[5] < 0 ? -1 : 1, R[10] < 0 ? -1 : 1); + var remover = Transform.scale([R[0] < 0 ? -1 : 1, R[5] < 0 ? -1 : 1, R[10] < 0 ? -1 : 1]); R = Transform.compose(R, remover); Q = Transform.compose(remover, Q);