Skip to content

Commit

Permalink
3.19.17
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Mar 13, 2024
1 parent 7b6f578 commit 3443af7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions p5play.js
Expand Up @@ -1038,9 +1038,7 @@ p5.prototype.registerMethod('init', function p5playInit() {
}

w = max.x - min.x;
this._hw = w * 0.5;
h = max.y - min.y;
this._hh = h * 0.5;

if (this._originMode == 'start') {
for (let i = 0; i < vecs.length; i++) {
Expand Down Expand Up @@ -1098,12 +1096,16 @@ p5.prototype.registerMethod('init', function p5playInit() {
}
}
this.shape ??= shape;
this._w = w;
this._hw = w * 0.5;
if (this.__shape != 1) {
this._h = h;
this._hh = h * 0.5;

if (!this.fixtureList) {
this._w = w;
this._hw = w * 0.5;
if (this.__shape != 1) {
this._h = h;
this._hh = h * 0.5;
}
}

return s;
}

Expand Down Expand Up @@ -6022,7 +6024,7 @@ p5.prototype.registerMethod('init', function p5playInit() {
*/
removeAll() {
while (this.length > 0) {
this[0].remove();
this.at(-1).remove();
}
}

Expand Down
2 changes: 1 addition & 1 deletion p5play.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -49,5 +49,5 @@
"version": "git add -A",
"postversion": "git push"
},
"version": "3.19.16"
"version": "3.19.17"
}

0 comments on commit 3443af7

Please sign in to comment.