mirror of https://github.com/axmolengine/axmol.git
Modify that parse position for Node3DReader.
This commit is contained in:
parent
829da53773
commit
388e4b3a93
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue