Skip to content

Commit a8f9bb0

Browse files
author
Lauren McCarthy
committed
changing redraw to fix #1058
1 parent 118669d commit a8f9bb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/structure.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ p5.prototype.redraw = function () {
282282
var userSetup = this.setup || window.setup;
283283
var userDraw = this.draw || window.draw;
284284
if (typeof userDraw === 'function') {
285-
this.push();
285+
this.resetMatrix();
286286
if (typeof userSetup === 'undefined') {
287287
this.scale(this._pixelDensity, this._pixelDensity);
288288
}
@@ -294,7 +294,6 @@ p5.prototype.redraw = function () {
294294
this._registeredMethods.post.forEach(function (f) {
295295
f.call(self);
296296
});
297-
this.pop();
298297
}
299298
};
300299

0 commit comments

Comments
 (0)