[Bf-committers] About bug 675 - Analyse and possible solution

Stephane SOPPERA bf-committers@blender.org
Tue, 01 Jun 2004 23:18:44 +0000

Laurence Bourn wrote:

>I was a bit confused by the explanations as to what exactly the problem was. Can the IK module do any sensible solving in the situation you describe?
I don't think it can since that means that both the target and the point 
are too close.

> If not then put the if (goal_dir.fuzzyZero()) check into the IK module and return false.
Maybe that should also be done.

> I don't know what is sensible todo from a user's point of view I'll leave that upto you guys. You're right, assertions are there to inform the developer that either the entry data to the module is incorrect or that an internal error has occurecd. In either case the module (IK) should be fixed so that the assertion is no longer fired - by returning a suitable error code in the first case or by fixing the internal problem in the second. Sounds to me like this is an example of the first case...

Stephane SOPPERA