Permalink
Browse files

Fixes rotate tool

  • Loading branch information...
1 parent 88e996b commit 6782b1bf2b3b8f132f3597f08c9add403643bb9e @stephomi committed Jan 19, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 editor/sculpt.js
View
@@ -489,8 +489,8 @@ Sculpt.prototype = {
fallOff = 3.0 * fallOff * fallOff - 4.0 * fallOff * dist + 1.0;
quat.setAxisAngle(rot, nPlane, angle * fallOff);
coord[0] = vAr[ind] - cx;
- coord[1] = vAr[ind + 1] - cz;
- coord[2] = vAr[ind + 2] - cy;
+ coord[1] = vAr[ind + 1] - cy;
+ coord[2] = vAr[ind + 2] - cz;
vec3.transformQuat(coord, coord, rot);
coord[0] += cx;
coord[1] += cy;

0 comments on commit 6782b1b

Please sign in to comment.