]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
removed the clearing of the root bone in .psa animations, to fix bugs (sorry, this...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 May 2006 09:20:29 +0000 (09:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 May 2006 09:20:29 +0000 (09:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6364 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c

index 52b33909c79c60a4ed527d485074bd91234e2c92..f6cef70c3cd6f8849903f97bedce78a249ffa1ab 100644 (file)
@@ -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
                        }