[Bf-committers] Normalise patch
nathan at cessen.com
Thu Feb 9 07:45:48 CET 2006
I fixed a potential bug in the Normalise() code. It was setting
super-small vectors to <0,0,0>, which really isn't a good behavior for
something that's supposed to return vectors of length 1.
I simply changed it to set super-small vectors to a default <0,0,1>
It still returns zero for the length, so it can be checked. But
this way it has a graceful default behavior.
--Nathan "Cessen" Vegdahl
More information about the Bf-committers