From 389548bd42186e7a9b411e6a323dd7149c0d140d Mon Sep 17 00:00:00 2001 From: Kelly Fennig Date: Fri, 4 Apr 2014 00:46:36 -0700 Subject: [PATCH] reverting hack to remove post rotation. --HG-- branch : nfb --- KREngine/kraken/KRResource+fbx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KREngine/kraken/KRResource+fbx.cpp b/KREngine/kraken/KRResource+fbx.cpp index 8640e90..09e3ab1 100644 --- a/KREngine/kraken/KRResource+fbx.cpp +++ b/KREngine/kraken/KRResource+fbx.cpp @@ -926,8 +926,8 @@ void LoadNode(FbxScene* pFbxScene, KRNode *parent_node, FbxGeometryConverter *pG KRVector3 node_pre_rotation, node_post_rotation; if(rotation_active) { node_pre_rotation = KRVector3(pre_rotation[0], pre_rotation[1], pre_rotation[2]) / 180.0 * M_PI; - // node_post_rotation = KRVector3(post_rotation[0], post_rotation[1], post_rotation[2]) / 180.0 * M_PI; - //&KRF HACK removing this line (above) to prevent the post rotation from corrupting the default light values; the FBX is importing a post rotation and setting it to -90 degrees + node_post_rotation = KRVector3(post_rotation[0], post_rotation[1], post_rotation[2]) / 180.0 * M_PI; + //&KRF HACK removing this line (above) to prevent the post rotation from corrupting the default light values; the FBX is importing a post rotation and setting it to -90 degrees } else { node_pre_rotation = KRVector3::Zero(); node_post_rotation = KRVector3::Zero();