File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1830,8 +1830,10 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
1830
1830
// position
1831
1831
if ( this . _positionType == cc . PARTICLE_TYPE_FREE )
1832
1832
particle . startPos = this . convertToWorldSpace ( this . _pointZeroForParticle ) ;
1833
- else if ( this . _positionType == cc . PARTICLE_TYPE_RELATIVE )
1834
- particle . startPos = this . _position ;
1833
+ else if ( this . _positionType == cc . PARTICLE_TYPE_RELATIVE ) {
1834
+ particle . startPos . x = this . _position . x ;
1835
+ particle . startPos . y = this . _position . y ;
1836
+ }
1835
1837
1836
1838
// direction
1837
1839
var a = cc . DEGREES_TO_RADIANS ( this . _angle + this . _angleVar * locRandomMinus11 ( ) ) ;
@@ -2056,7 +2058,6 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
2056
2058
var currentPosition = cc . Particle . TemporaryPoints [ 0 ] ;
2057
2059
if ( this . _positionType == cc . PARTICLE_TYPE_FREE ) {
2058
2060
cc . pIn ( currentPosition , this . convertToWorldSpace ( this . _pointZeroForParticle ) ) ;
2059
-
2060
2061
} else if ( this . _positionType == cc . PARTICLE_TYPE_RELATIVE ) {
2061
2062
currentPosition . x = this . _position . x ;
2062
2063
currentPosition . y = this . _position . y ;
You can’t perform that action at this time.
0 commit comments