mirror of https://github.com/axmolengine/axmol.git
Merge pull request #10904 from pipu/fixed_widget_reader_actiontag
Optimize parse action tag for node and widget.
This commit is contained in:
commit
aa573a9553
|
@ -512,7 +512,6 @@ namespace cocostudio
|
||||||
node->setColor(color);
|
node->setColor(color);
|
||||||
|
|
||||||
node->setTag(tag);
|
node->setTag(tag);
|
||||||
node->setUserObject(timeline::ActionTimelineData::create(actionTag));
|
|
||||||
|
|
||||||
ObjectExtensionData* extensionData = ObjectExtensionData::create();
|
ObjectExtensionData* extensionData = ObjectExtensionData::create();
|
||||||
extensionData->setCustomProperty(customProperty);
|
extensionData->setCustomProperty(customProperty);
|
||||||
|
|
|
@ -799,8 +799,6 @@ namespace cocostudio
|
||||||
extensionData->setActionTag(actionTag);
|
extensionData->setActionTag(actionTag);
|
||||||
node->setUserObject(extensionData);
|
node->setUserObject(extensionData);
|
||||||
|
|
||||||
widget->setUserObject(timeline::ActionTimelineData::create(actionTag));
|
|
||||||
|
|
||||||
bool touchEnabled = options->touchEnabled() != 0;
|
bool touchEnabled = options->touchEnabled() != 0;
|
||||||
widget->setTouchEnabled(touchEnabled);
|
widget->setTouchEnabled(touchEnabled);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue