We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f46a8a9 commit 71613f5Copy full SHA for 71613f5
engine/modules/entities/src/main/resources/view/entity-module/Sprite.js
@@ -28,7 +28,11 @@ export class Sprite extends TextureBasedEntity {
28
super.updateDisplay(state, changed, globalData)
29
if (changed.image) {
30
try {
31
- this.graphics.texture = PIXI.Texture.fromFrame(state.image)
+ if (state.image !== null) {
32
+ this.graphics.texture = PIXI.Texture.fromFrame(state.image)
33
+ } else {
34
+ this.graphics.texture = PIXI.Texture.EMPTY
35
+ }
36
} catch (error) {
37
if (!this.missingTextures[state.image]) {
38
this.missingTextures[state.image] = true
0 commit comments