move generating the random axis to the right place.

2008-05-22  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate): move
	generating the random axis to the right place.


svn path=/trunk/; revision=25766
This commit is contained in:
Michael Natterer 2008-05-22 20:17:49 +00:00 committed by Michael Natterer
parent d66828c883
commit bbbc6375e7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-05-22 Michael Natterer <mitch@gimp.org>
* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate): move
generating the random axis to the right place.
2008-05-22 Michael Natterer <mitch@gimp.org>
* app/paint/gimppaintoptions.[ch]: replace the pressure-expanded,

View File

@ -636,6 +636,7 @@ gimp_brush_core_interpolate (GimpPaintCore *paint_core,
p * delta_wheel);
paint_core->cur_coords.velocity = (paint_core->last_coords.velocity +
p * delta_velocity);
paint_core->cur_coords.random = g_random_double_range (0.0, 1.0);
if (core->jitter > 0.0)
{
@ -669,7 +670,6 @@ gimp_brush_core_interpolate (GimpPaintCore *paint_core,
paint_core->cur_coords.ytilt = paint_core->last_coords.ytilt + delta_ytilt;
paint_core->cur_coords.wheel = paint_core->last_coords.wheel + delta_wheel;
paint_core->cur_coords.velocity = paint_core->last_coords.velocity + delta_velocity;
paint_core->cur_coords.random = g_random_double_range (0.0, 1.0);
paint_core->distance = total;
paint_core->pixel_dist = pixel_initial + pixel_dist;