Blender Git Commit Log

Git Commits -> Revision d96c692

Revision d96c692 by Joshua Leung (BendyBones)
May 17, 2016, 14:29 (GMT)
Bendy Bones: Fix for "flattening out" glitch when scaling up the bone

The fix here is to apply a scaling correction to the offsets we're applying
if the do_scale flag gets set. For whatever reason (I'm guessing floating point
precision errors), when the scale factor gets to around 8.15/8.16, there's a bit
more of a difference between x/y or y/z scale factors, leading to everything
needing to get scaled up 8 times (i.e. the bone length for the calculations is
8.16 not 1.0 as per usual). If we don't scale the offsets being applied to
compensate for this, the effect of the offsets will be less (i.e. the handles move
less), hence the bbone flattening out.

Commit Details:

Full Hash: d96c69259f8c299bca36fcd3366756a8c8ce0d03
Parent Commit: 21d8ff3
Lines Changed: +11, -4

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2019