From 3eaf4d428c06dcf2f08beccb8a613de02a5498aa Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 11 May 2006 09:20:29 +0000 Subject: [PATCH] removed the clearing of the root bone in .psa animations, to fix bugs (sorry, this was experimental and apparently broken) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6364 d7cf8633-e32d-0410-b094-e92efae38249 --- model_alias.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/model_alias.c b/model_alias.c index 52b33909..f6cef70c 100644 --- a/model_alias.c +++ b/model_alias.c @@ -2224,13 +2224,9 @@ void Mod_PSKMODEL_Load(model_t *mod, void *buffer, void *bufferend) } else { - //p->quat[0] *= 1; - //p->quat[1] *= -1; - //p->quat[2] *= 1; - // clear root bone to defaults to recenter all frames of an animation - // (root bone is often tilted, or worse); - VectorSet(p->origin, 0, 0, 0); - Vector4Set(p->quat, 0, 0, 0.707106781187, 0.707106781187); + p->quat[0] *= 1; + p->quat[1] *= -1; + p->quat[2] *= 1; } #endif } -- 2.39.2