From 7e5c17d1732606b3e32da054e73fe42813cf7326 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Tue, 10 Jul 2012 09:16:12 -0700 Subject: Grid drawing fixes --- js/helper-classes/3D/StageLine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/helper-classes') diff --git a/js/helper-classes/3D/StageLine.js b/js/helper-classes/3D/StageLine.js index c358108f..a9149f56 100755 --- a/js/helper-classes/3D/StageLine.js +++ b/js/helper-classes/3D/StageLine.js @@ -270,11 +270,11 @@ var StageLine = exports.StageLine = Object.create(Object.prototype, { var planeEq = plane.getPlaneEq(); var bNormal = vecUtils.vecCross(3, planeEq, bVec); var dot = vecUtils.vecDot(3, bNormal, lVec); - if (MathUtils.fpSign(dot) > 0) + if (MathUtils.fpSign(dot) < 0) { var d = vecUtils.vecDot(3, lPt1, planeEq) + planeEq[3]; if (plane.isBackFacing()) d = -d; - if (MathUtils.fpSign(d) > 0) rtnVal = true; + if (MathUtils.fpSign(d) < 0) rtnVal = true; } } -- cgit v1.2.3