File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 203203 if ( displayedColor . r === 255 && displayedColor . g === 255 && displayedColor . b === 255 ) {
204204 if ( this . _colorized ) {
205205 this . _colorized = false ;
206- node . texture = this . _originalTexture ;
206+ var rect = cc . rect ( node . _rect ) ;
207+ var isRotation = node . _rectRotated ;
208+ node . setTexture ( this . _originalTexture ) ;
209+ node . setTextureRect ( rect , isRotation ) ;
207210 }
208211 return ;
209212 }
Original file line number Diff line number Diff line change 133133
134134 this . _clipElemType = node . _stencil instanceof cc . Sprite ;
135135 this . _syncStatus ( parentCmd ) ;
136- this . _dirtyFlag = 0 ;
137136
138137 cc . renderer . pushRenderCommand ( this . _rendererSaveCmd ) ;
139138 if ( this . _clipElemType ) {
171170 locProtectChildren [ j ] . visit ( this ) ;
172171 cc . renderer . pushRenderCommand ( this . _rendererRestoreCmd ) ;
173172 }
173+ this . _dirtyFlag = 0 ;
174174 } ;
175175
176176 ccui . Layout . CanvasRenderCmd . _getSharedCache = function ( ) {
You can’t perform that action at this time.
0 commit comments