mirror of https://github.com/axmolengine/axmol.git
ProjectNode's actiontimeline should jump to 0 frame when after nest into another csd
This commit is contained in:
parent
9f24b9a350
commit
2fc79e2da5
|
@ -843,6 +843,7 @@ Node* CSLoader::nodeWithFlatBuffers(const flatbuffers::NodeTree *nodetree)
|
||||||
if (action)
|
if (action)
|
||||||
{
|
{
|
||||||
node->runAction(action);
|
node->runAction(action);
|
||||||
|
action->gotoFrameAndPause(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1172,6 +1173,7 @@ Node* CSLoader::nodeWithFlatBuffersForSimulator(const flatbuffers::NodeTree *nod
|
||||||
if (action)
|
if (action)
|
||||||
{
|
{
|
||||||
node->runAction(action);
|
node->runAction(action);
|
||||||
|
action->gotoFrameAndPause(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue