Module dpmodel: Change committed

havoc at icculus.org havoc at icculus.org
Thu Jul 29 20:12:41 EDT 2004


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : dpmodel
Commit time: 2004-07-30 00:12:41 UTC

Log message:

Vic fixed modelscale issues on root bones

Modified files:
     dpmodel.c

------=MIME.23339d5f0e441a82e08681831e898557
Content-Type: text/plain; name="dpmodel.20040730.001241.havoc.diff"
Content-Disposition: attachment; filename="dpmodel.20040730.001241.havoc.diff"
Content-Transfer-Encoding: 8bit

Index: dpmodel/dpmodel.c
diff -u dpmodel/dpmodel.c:1.4 dpmodel/dpmodel.c:1.5
--- dpmodel/dpmodel.c:1.4	Wed Dec 10 22:41:33 2003
+++ dpmodel/dpmodel.c	Thu Jul 29 20:12:31 2004
@@ -515,9 +515,9 @@
 			// root bones need to be offset
 			if (bones[num].parent < 0)
 			{
-				x -= modelorigin[0];
-				y -= modelorigin[1];
-				z -= modelorigin[2];
+				x = (x - modelorigin[0]) * modelscale;
+				y = (y - modelorigin[1]) * modelscale;
+				z = (z - modelorigin[2]) * modelscale;
 			}
 			// LordHavoc: compute matrix
 			frames[frame].bones[num] = computebonematrix(x, y, z, a, b, c);


More information about the twilight-commits mailing list