From 276926133022577344d0e4934d1ff44da2ac18aa Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Thu, 12 Apr 2012 15:47:04 -0700 Subject: Use local coordinates for rendering and hit testing only when the path canvas exists....AND...good state for code that works in 3D as long as the path was originally created in XY plane of the stage --- js/lib/geom/sub-path.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/lib/geom') diff --git a/js/lib/geom/sub-path.js b/js/lib/geom/sub-path.js index 87840bdc..765316b1 100755 --- a/js/lib/geom/sub-path.js +++ b/js/lib/geom/sub-path.js @@ -1354,6 +1354,7 @@ GLSubpath.prototype.buildLocalCoord = function () { var localPoint = [this._samples[3*i],this._samples[3*i+1],this._samples[3*i+2]]; localPoint[0]-= stageWorldCenter[0]; localPoint[1]-= stageWorldCenter[1]; + localPoint[2]-= stageWorldCenter[2]; // ***** unproject all the centered points and convert them to 2D (plane space)***** // (undo the projection step performed by the browser) -- cgit v1.2.3