Skip to content

Commit 4aa22e2

Browse files
committed
Check texture property.
1 parent 7b938f3 commit 4aa22e2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/gameobjects/components/Core.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ Phaser.Component.Core.preUpdate = function () {
106106
this.renderOrderID = this.game.stage.currentRenderOrderID++;
107107
}
108108

109-
this.texture.requiresReTint = false;
109+
if (this.texture)
110+
{
111+
this.texture.requiresReTint = false;
112+
}
110113

111114
if (this.animations)
112115
{

0 commit comments

Comments
 (0)