diff --git a/src/tree/Element.mjs b/src/tree/Element.mjs index d288db2a..2957b4a6 100644 --- a/src/tree/Element.mjs +++ b/src/tree/Element.mjs @@ -606,7 +606,7 @@ export default class Element { } } - const prevSource = this.__core.displayedTextureSource ? this.__core.displayedTextureSource._source : null; + const prevSource = this.__core.displayedTextureSource; const sourceChanged = (v ? v._source : null) !== prevSource; this.__displayedTexture = v;