From: havoc Date: Thu, 11 May 2006 09:20:29 +0000 (+0000) Subject: removed the clearing of the root bone in .psa animations, to fix bugs (sorry, this... X-Git-Tag: xonotic-v0.1.0preview~4002 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3eaf4d428c06dcf2f08beccb8a613de02a5498aa;p=xonotic%2Fdarkplaces.git 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 --- 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 }