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# */{
14051405 locModeA . tangentialAccelVar = ( pszTmp ) ? parseFloat ( pszTmp ) : 0 ;
14061406
14071407 // 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+ }
14101416 } else if ( this . emitterMode === cc . ParticleSystem . MODE_RADIUS ) {
14111417 // or Mode B: radius movement
14121418 var locModeB = this . modeB ;
You can’t perform that action at this time.
0 commit comments