Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rebuilt cp.js and cp.min.js

  • Loading branch information...
commit e722df7d6541cf8de8fbc39eeb1ba6adf8b66eee 1 parent 65a9a68
@josephg authored
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;
};
View
4 cp.min.js
2 additions, 2 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.