Fix tests by more carefully checking for the skin

This commit is contained in:
Paul Kaplan 2019-10-14 12:02:44 -04:00
parent 5913cae969
commit 94188fc075

View file

@ -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});
} }