From 61e2ec5052bbff0cfd792ac141f83ee8757416f3 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Tue, 10 Jul 2012 15:37:44 -0700 Subject: Tweak to an edge case in grid drawing. --- js/helper-classes/3D/StageLine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/helper-classes/3D/StageLine.js b/js/helper-classes/3D/StageLine.js index 38bd80ef..f9abc5ce 100755 --- a/js/helper-classes/3D/StageLine.js +++ b/js/helper-classes/3D/StageLine.js @@ -273,7 +273,7 @@ var StageLine = exports.StageLine = Object.create(Object.prototype, { lVec = vecUtils.vecSubtract(3, lPt1, lPt0); var backFacing = plane.isBackFacing(); - var bNormal = vecUtils.vecCross(3, planeEq, bVec); + var bNormal = vecUtils.vecCross(3, [0,0,1], bVec); var dot = vecUtils.vecDot(3, bNormal, lVec); if ((!backFacing && (MathUtils.fpSign(dot) < 0)) || (backFacing && (MathUtils.fpSign(dot) > 0))) { -- cgit v1.2.3