File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,10 @@ cc.Node.RenderCmd.prototype = {
194
194
}
195
195
}
196
196
197
+ if ( node . _additionalTransformDirty ) {
198
+ this . _transform = t = cc . affineTransformConcat ( t , node . _additionalTransform ) ; // seems like 'this._transform' can be removed
199
+ }
200
+
197
201
if ( pt ) {
198
202
// cc.AffineTransformConcat is incorrect at get world transform
199
203
wt . a = t . a * pt . a + t . b * pt . c ; //a
@@ -229,6 +233,10 @@ cc.Node.RenderCmd.prototype = {
229
233
}
230
234
}
231
235
236
+ if ( node . _additionalTransformDirty ) {
237
+ this . _transform = t = cc . affineTransformConcat ( t , node . _additionalTransform ) ;
238
+ }
239
+
232
240
if ( pt ) {
233
241
wt . a = t . a * pt . a + t . b * pt . c ;
234
242
wt . b = t . a * pt . b + t . b * pt . d ;
@@ -246,10 +254,6 @@ cc.Node.RenderCmd.prototype = {
246
254
}
247
255
}
248
256
249
- if ( node . _additionalTransformDirty ) {
250
- this . _transform = cc . affineTransformConcat ( t , node . _additionalTransform ) ;
251
- }
252
-
253
257
this . _updateCurrentRegions && this . _updateCurrentRegions ( ) ;
254
258
this . _notifyRegionStatus && this . _notifyRegionStatus ( cc . Node . CanvasRenderCmd . RegionStatus . DirtyDouble ) ;
255
259
You can’t perform that action at this time.
0 commit comments