@@ -1694,6 +1694,12 @@ export class CoreNode extends EventEmitter {
16941694 const coords = this . renderCoords ;
16951695 const texture = p . texture || this . stage . defaultTexture ;
16961696
1697+ // There is a race condition where the texture can be null
1698+ // with RTT nodes. Adding this defensively to avoid errors.
1699+ if ( texture && texture . state !== 'loaded' ) {
1700+ return ;
1701+ }
1702+
16971703 renderer . addQuad ( {
16981704 width : p . w ,
16991705 height : p . h ,
@@ -1780,7 +1786,7 @@ export class CoreNode extends EventEmitter {
17801786
17811787 set w ( value : number ) {
17821788 if ( this . props . w !== value ) {
1783- this . textureCoords = undefined ;
1789+ this . updateTextureCoords = true ;
17841790 this . props . w = value ;
17851791 this . setUpdateType ( UpdateType . Local ) ;
17861792
@@ -1802,7 +1808,7 @@ export class CoreNode extends EventEmitter {
18021808
18031809 set h ( value : number ) {
18041810 if ( this . props . h !== value ) {
1805- this . textureCoords = undefined ;
1811+ this . updateTextureCoords = true ;
18061812 this . props . h = value ;
18071813 this . setUpdateType ( UpdateType . Local ) ;
18081814
@@ -2139,6 +2145,10 @@ export class CoreNode extends EventEmitter {
21392145 }
21402146
21412147 set zIndex ( value : number ) {
2148+ if ( this . props . zIndex === value ) {
2149+ return ;
2150+ }
2151+
21422152 this . props . zIndex = value ;
21432153 this . setUpdateType ( UpdateType . CalculatedZIndex | UpdateType . Children ) ;
21442154 for ( let i = 0 , length = this . children . length ; i < length ; i ++ ) {
0 commit comments