fixed project dialog preview

pull/95/head
jmoenig 2020-05-05 16:35:44 +02:00
rodzic cb36aece64
commit 09664d8a87
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -6278,7 +6278,9 @@ ProjectDialogMorph.prototype.buildContents = function () {
this.preview.contrast = InputFieldMorph.prototype.contrast;
this.preview.render = function (ctx) {
InputFieldMorph.prototype.render.call(this, ctx);
if (this.texture) {
if (this.cachedTexture) {
this.renderCachedTexture(ctx);
} else if (this.texture) {
this.renderTexture(this.texture, ctx);
}
};