Skip to content

Commit

Permalink
Fix sourcePosition bug for ParticleSystem. (cocos2d#18002)
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 authored and minggo committed Jun 30, 2017
1 parent 4b61ea1 commit 795538a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/2d/CCParticleSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ bool ParticleSystem::initWithDictionary(ValueMap& dictionary, const std::string&
// position
float x = dictionary["sourcePositionx"].asFloat();
float y = dictionary["sourcePositiony"].asFloat();
this->setPosition(x,y);
this->setSourcePosition(Vec2(x,y));
_posVar.x = dictionary["sourcePositionVariancex"].asFloat();
_posVar.y = dictionary["sourcePositionVariancey"].asFloat();

Expand Down

0 comments on commit 795538a

Please sign in to comment.