File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1405,8 +1405,14 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
1405
1405
locModeA . tangentialAccelVar = ( pszTmp ) ? parseFloat ( pszTmp ) : 0 ;
1406
1406
1407
1407
// rotation is dir
1408
- var locRotationIsDir = locValueForKey ( "rotationIsDir" , dictionary ) . toLowerCase ( ) ;
1409
- locModeA . rotationIsDir = ( locRotationIsDir != null && ( locRotationIsDir === "true" || locRotationIsDir === "1" ) ) ;
1408
+ var locRotationIsDir = locValueForKey ( "rotationIsDir" , dictionary ) ;
1409
+ if ( locRotationIsDir !== null ) {
1410
+ locRotationIsDir = locRotationIsDir . toString ( ) . toLowerCase ( ) ;
1411
+ locModeA . rotationIsDir = ( locRotationIsDir === "true" || locRotationIsDir === "1" ) ;
1412
+ }
1413
+ else {
1414
+ locModeA . rotationIsDir = false ;
1415
+ }
1410
1416
} else if ( this . emitterMode === cc . ParticleSystem . MODE_RADIUS ) {
1411
1417
// or Mode B: radius movement
1412
1418
var locModeB = this . modeB ;
You can’t perform that action at this time.
0 commit comments