Merge pull request #20 from pipu/parse_Node3DReader_position

Modify that parse position for Node3DReader.
This commit is contained in:
xiaofeng11 2015-04-20 16:11:31 +08:00
commit 2c0350c1a6
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)