mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-28 22:30:04 -04:00
Merge pull request #442 from adroitwhiz/pen-stamp-region-optimization
Don't _doExitDrawRegion in penStamp until we're sure we're stamping
This commit is contained in:
commit
ab517fff51
1 changed files with 2 additions and 2 deletions
|
@ -1416,8 +1416,6 @@ class RenderWebGL extends EventEmitter {
|
|||
* @param {int} stampID - the unique ID of the Drawable to use as the stamp.
|
||||
*/
|
||||
penStamp (penSkinID, stampID) {
|
||||
this._doExitDrawRegion();
|
||||
|
||||
const stampDrawable = this._allDrawables[stampID];
|
||||
if (!stampDrawable) {
|
||||
return;
|
||||
|
@ -1428,6 +1426,8 @@ class RenderWebGL extends EventEmitter {
|
|||
return;
|
||||
}
|
||||
|
||||
this._doExitDrawRegion();
|
||||
|
||||
const skin = /** @type {PenSkin} */ this._allSkins[penSkinID];
|
||||
|
||||
const gl = this._gl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue