From bc1bc57a7c8a32bf92bca8aa758b0ea0eeaffbc3 Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Thu, 19 Apr 2012 11:58:20 -0700 Subject: correctly maintain canvas position when drawing subpaths off the XY plane (was a bug with starting drawing in those planes) --- js/lib/geom/sub-path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/lib/geom/sub-path.js') diff --git a/js/lib/geom/sub-path.js b/js/lib/geom/sub-path.js index 60335990..43420bc9 100755 --- a/js/lib/geom/sub-path.js +++ b/js/lib/geom/sub-path.js @@ -281,7 +281,7 @@ GLSubpath.prototype.setCanvasCenterLocalCoord = function(center){ }; GLSubpath.prototype.getCanvasCenterLocalCoord = function(){ - return this._canvasCenterLocalCoord; + return [this._canvasCenterLocalCoord[0],this._canvasCenterLocalCoord[1],this._canvasCenterLocalCoord[2]]; }; GLSubpath.prototype.getNumAnchors = function () { -- cgit v1.2.3