OSDN Git Service

Correct last commit, that did not prevent the div zero
authorRobin Cornelius <robin.cornelius@gmail.com>
Sat, 6 Aug 2011 09:10:16 +0000 (09:10 +0000)
committerRobin Cornelius <robin.cornelius@gmail.com>
Sat, 6 Aug 2011 09:10:16 +0000 (09:10 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@1068 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Rendering/RenderingHelpers.cs

index d6abf4a..032c734 100644 (file)
@@ -2401,7 +2401,7 @@ namespace Radegast.Rendering
                             binBVHJointKey pos = b.joints[jpos].positionkeys[state.lastkeyframe_pos];\r
 \r
 \r
-                            if( (pos2.time - pos.time) != ((state.currenttime_pos) - (pos.time - b.joints[jpos].positionkeys[0].time)))\r
+                            if (state.currenttime_pos != ((pos.time - b.joints[jpos].positionkeys[0].time)))\r
                             {\r
 \r
                                 float delta = (pos2.time - pos.time) / ((state.currenttime_pos) - (pos.time - b.joints[jpos].positionkeys[0].time));\r