Modify that parse position for Node3DReader.

This commit is contained in:
pipu 2015-04-20 15:56:36 +08:00
parent 829da53773
commit 388e4b3a93
1 changed files with 3 additions and 3 deletions

View File

@ -172,6 +172,9 @@ namespace cocostudio
{
auto options = (Node3DOption*)node3DOptions;
auto nodeReader = NodeReader::getInstance();
nodeReader->setPropsWithFlatBuffers(node, (Table*)(options->nodeOptions()));
const Vector3* position = options->position3D();
const Vector3* rotation = options->rotation3D();
const Vector3* scale = options->scale3D();
@ -195,9 +198,6 @@ namespace cocostudio
}
node->setCameraMask(cameraMask, true);
auto nodeReader = NodeReader::getInstance();
nodeReader->setPropsWithFlatBuffers(node, (Table*)(options->nodeOptions()));
}
Node* Node3DReader::createNodeWithFlatBuffers(const flatbuffers::Table *node3DOptions)