mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Fix tests by more carefully checking for the skin
This commit is contained in:
parent
5913cae969
commit
94188fc075
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class Video {
|
||||||
}
|
}
|
||||||
|
|
||||||
_disablePreview () {
|
_disablePreview () {
|
||||||
if (this._skinId) {
|
if (this._skinId !== -1) {
|
||||||
this.runtime.renderer.updateBitmapSkin(this._skinId, new ImageData(...Video.DIMENSIONS), 1);
|
this.runtime.renderer.updateBitmapSkin(this._skinId, new ImageData(...Video.DIMENSIONS), 1);
|
||||||
this.runtime.renderer.updateDrawableProperties(this._drawable, {visible: false});
|
this.runtime.renderer.updateDrawableProperties(this._drawable, {visible: false});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue