From 388e4b3a93774af8bf2d6b9e2dc9f4b2602ab878 Mon Sep 17 00:00:00 2001 From: pipu Date: Mon, 20 Apr 2015 15:56:36 +0800 Subject: [PATCH] Modify that parse position for Node3DReader. --- .../cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/editor-support/cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp b/cocos/editor-support/cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp index ae39d9f497..c5a3aa92cf 100644 --- a/cocos/editor-support/cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp +++ b/cocos/editor-support/cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp @@ -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)