Merge pull request #4975 from chengstory/fix_UIAction_play_error

fixed UIAction play error.
This commit is contained in:
James Chen 2014-01-07 03:17:41 -08:00
commit e90f35daa6
1 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic,Object* root)
actionFrame->setFrameIndex(frameInex);
actionFrame->setScaleX(scaleX);
actionFrame->setScaleY(scaleY);
auto cActionArray = _frameArray.at((int)kKeyframeMove);
auto cActionArray = _frameArray.at((int)kKeyframeScale);
cActionArray->pushBack(actionFrame);
}
@ -113,7 +113,7 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic,Object* root)
actionFrame->autorelease();
actionFrame->setFrameIndex(frameInex);
actionFrame->setRotation(rotation);
auto cActionArray = _frameArray.at((int)kKeyframeMove);
auto cActionArray = _frameArray.at((int)kKeyframeRotate);
cActionArray->pushBack(actionFrame);
}
@ -125,7 +125,7 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic,Object* root)
actionFrame->autorelease();
actionFrame->setFrameIndex(frameInex);
actionFrame->setOpacity(opacity);
auto cActionArray = _frameArray.at((int)kKeyframeMove);
auto cActionArray = _frameArray.at((int)kKeyframeTint);
cActionArray->pushBack(actionFrame);
}
@ -139,7 +139,7 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic,Object* root)
actionFrame->autorelease();
actionFrame->setFrameIndex(frameInex);
actionFrame->setColor(Color3B(colorR,colorG,colorB));
auto cActionArray = _frameArray.at((int)kKeyframeMove);
auto cActionArray = _frameArray.at((int)kKeyframeFade);
cActionArray->pushBack(actionFrame);
}
}