diff --git a/cocos/editor-support/cocostudio/TimelineAction/CCNodeReader.cpp b/cocos/editor-support/cocostudio/TimelineAction/CCNodeReader.cpp index 70c032766c..c9828328e5 100644 --- a/cocos/editor-support/cocostudio/TimelineAction/CCNodeReader.cpp +++ b/cocos/editor-support/cocostudio/TimelineAction/CCNodeReader.cpp @@ -453,7 +453,10 @@ cocos2d::Node* NodeReader::loadWidget(const rapidjson::Value& json) WidgetReaderProtocol* reader = dynamic_cast(ObjectFactory::getInstance()->createObject(readerName)); _guiReader->setPropsForAllWidgetFromJsonDictionary(reader, widget, json); - + + int actionTag = DICTOOL->getIntValue_json(json, ACTION_TAG); + widget->setUserObject(TimelineActionData::create(actionTag)); + return widget; }