[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel/intern armature.c blender/source/blender/blenlib/intern arithb.c blender/source/blender/src editarmature.c

Ton Roosendaal ton at blender.org
Tue Nov 21 11:52:11 CET 2006


ton (Ton Roosendaal) 2006/11/21 11:52:11 CET

  Modified files:
    blender/source/blender/blenkernel/intern armature.c 
    blender/source/blender/blenlib/intern arithb.c 
    blender/source/blender/src editarmature.c 
  
  Log:
  Fix for commit from Brecht:
  
  2006/11/19 00:07:32 CET
  Fix for bug #5250: inaccurate conversion between edit and pose mode bones.
  
  Two very bad bugs:
  - replacing atan() with atan2() should also remove the M_PI correction!
    This is the equivalent:
      angle=atan(x/y); if(y<0) angle+=M_PI;
      angle= atan2(x, y);
  
  - the new NormalizedVecAngle2() call was negating an input vector, causing
    calling code to screw up. All arithb.c calls should not alter input.
  
  Revision  Changes    Path
  1.86      +5 -4      blender/source/blender/blenkernel/intern/armature.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/armature.c.diff?r1=1.85&r2=1.86&cvsroot=bf-blender>
  1.49      +7 -5      blender/source/blender/blenlib/intern/arithb.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenlib/intern/arithb.c.diff?r1=1.48&r2=1.49&cvsroot=bf-blender>
  1.116     +5 -10     blender/source/blender/src/editarmature.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/editarmature.c.diff?r1=1.115&r2=1.116&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list