File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -341,8 +341,7 @@ cc.Node.RenderCmd.prototype = {
341341 locFlag |= flags . transformDirty ;
342342
343343 var colorDirty = locFlag & flags . colorDirty ,
344- opacityDirty = locFlag & flags . opacityDirty ,
345- transformDirty = locFlag & flags . transformDirty ;
344+ opacityDirty = locFlag & flags . opacityDirty ;
346345
347346 this . _dirtyFlag = locFlag ;
348347
@@ -357,7 +356,7 @@ cc.Node.RenderCmd.prototype = {
357356 if ( colorDirty )
358357 this . _updateColor ( ) ;
359358
360- if ( transformDirty )
359+ if ( cc . _renderType === cc . game . RENDER_TYPE_WEBGL || locFlag & flags . transformDirty )
361360 //update the transform
362361 this . transform ( parentCmd ) ;
363362 } ,
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ cc.LabelTTF._firsrEnglish = /^[a-zA-Z0-9ÄÖÜäöüßéèçàùêâîôû]/;
334334 } else if ( locFlag & flags . textDirty )
335335 this . _updateTexture ( ) ;
336336
337- if ( locFlag & flags . transformDirty ) //update the transform
337+ if ( cc . _renderType === cc . game . RENDER_TYPE_WEBGL || locFlag & flags . transformDirty )
338338 this . transform ( parentCmd ) ;
339339 } ;
340340
You can’t perform that action at this time.
0 commit comments