glTF2: Fix incorrect camera position
parent
ca79916048
commit
9915e875bf
|
@ -1172,11 +1172,6 @@ aiNode *ImportNode(aiScene *pScene, glTF2::Asset &r, std::vector<unsigned int> &
|
||||||
|
|
||||||
if (node.camera) {
|
if (node.camera) {
|
||||||
pScene->mCameras[node.camera.GetIndex()]->mName = ainode->mName;
|
pScene->mCameras[node.camera.GetIndex()]->mName = ainode->mName;
|
||||||
if (node.translation.isPresent) {
|
|
||||||
aiVector3D trans;
|
|
||||||
CopyValue(node.translation.value, trans);
|
|
||||||
pScene->mCameras[node.camera.GetIndex()]->mPosition = trans;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.light) {
|
if (node.light) {
|
||||||
|
|
Loading…
Reference in New Issue