Permalink
Browse files

Rebuilt cp.js and cp.min.js

  • Loading branch information...
1 parent 65a9a68 commit e722df7d6541cf8de8fbc39eeb1ba6adf8b66eee @josephg committed Dec 22, 2012
Showing with 6 additions and 2 deletions.
  1. +4 −0 cp.js
  2. +2 −2 cp.min.js
View
4 cp.js
@@ -1501,6 +1501,10 @@ Body.prototype.setPos = function(pos)
{
this.activate();
this.sanityCheck();
+ // If I allow the position to be set to vzero, vzero will get changed.
+ if (pos === vzero) {
+ pos = cp.v(0,0);
+ }
this.p = pos;
};
Oops, something went wrong.

0 comments on commit e722df7

Please sign in to comment.