Fixed warning: operation on ‘currentDirection’ may be undefined.
Updated fpumath.
Removed nonsense code.
Added vertex welding support.
Fixed resource cleanup.