[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel/intern modifier.c

Ben Batt benbatt at gmail.com
Wed Aug 30 13:10:04 CEST 2006


artificer (Ben Batt) 2006/08/30 13:10:04 CEST

  Modified files:
    blender/source/blender/blenkernel/intern modifier.c 
  
  Log:
  Fix for a bug where the Array modifier would freeze if it was set to "Fit To
  Curve Length" or "Fixed Count" and the base mesh was scaled to 0 in edit mode
  (could also happen while entering a numerical scale value like 0.25).
  
  The problem was that the dist value could be almost 0, leading to a
  ridiculously large duplicate count which would then cause memory allocation
  to fail and the array modifier to get stuck in an almost infinite loop trying
  to calculate the offset of the final copy. This commit fixes the problem
  by checking that dist is greater than FLT_EPSILON before continuing.
  
  Revision  Changes    Path
  1.71      +3 -2      blender/source/blender/blenkernel/intern/modifier.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/modifier.c.diff?r1=1.70&r2=1.71&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list