replace setAdditionnalTransform()

This commit is contained in:
lvlong 2015-03-25 10:04:51 +08:00
parent 5ce4fbe6df
commit 7efd4c2df6
1 changed files with 10 additions and 1 deletions

View File

@ -519,7 +519,16 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
}
}
setAdditionalTransform(&nodedata->transform);
Vec3 pos;
Quaternion qua;
Vec3 scale;
nodedata->transform.decompose(&scale, &qua, &pos);
setPosition3D(pos);
setRotationQuat(qua);
setScaleX(scale.x);
setScaleY(scale.y);
setScaleZ(scale.z);
}
}
else