File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1391,8 +1391,13 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
1391
1391
locModeA . tangentialAccelVar = ( pszTmp ) ? parseFloat ( pszTmp ) : 0 ;
1392
1392
1393
1393
// rotation is dir
1394
- var locRotationIsDir = locValueForKey ( "rotationIsDir" , dictionary ) . toLowerCase ( ) ;
1395
- locModeA . rotationIsDir = ( locRotationIsDir != null && ( locRotationIsDir === "true" || locRotationIsDir === "1" ) ) ;
1394
+ var locRotationIsDir = locValueForKey ( "rotationIsDir" , dictionary ) ;
1395
+ if ( locRotationIsDir !== null ) {
1396
+ locRotationIsDir = locRotationIsDir . toString ( ) . toLowerCase ( ) ;
1397
+ locModeA . rotationIsDir = ( locRotationIsDir === "true" || locRotationIsDir === "1" ) ;
1398
+ }
1399
+ else
1400
+ locModeA . rotationIsDir = false ;
1396
1401
} else if ( this . emitterMode === cc . ParticleSystem . MODE_RADIUS ) {
1397
1402
// or Mode B: radius movement
1398
1403
var locModeB = this . modeB ;
You can’t perform that action at this time.
0 commit comments