[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55355] trunk/blender/source/blender/ editors/sculpt_paint/paint_image.c: Fix evil own bug: paint_redraw accessed freed memory.

Antony Riakiotakis kalast at gmail.com
Sun Mar 17 17:53:35 CET 2013


Revision: 55355
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55355
Author:   psy-fi
Date:     2013-03-17 16:53:35 +0000 (Sun, 17 Mar 2013)
Log Message:
-----------
Fix evil own bug: paint_redraw accessed freed memory. Still doesn't
solve problem not being able to paint with black in image editor.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_image.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_image.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_image.c	2013-03-17 14:38:58 UTC (rev 55354)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_image.c	2013-03-17 16:53:35 UTC (rev 55355)
@@ -529,6 +529,8 @@
 	ToolSettings *settings = scene->toolsettings;
 	PaintOperation *pop = paint_stroke_mode_data(stroke);
 
+	paint_redraw(C, pop, 1);
+
 	if (pop->timer)
 		WM_event_remove_timer(CTX_wm_manager(C), CTX_wm_window(C), pop->timer);
 
@@ -541,7 +543,6 @@
 		paint_2d_stroke_done(pop->custom_paint);
 	}
 
-	paint_redraw(C, pop, 1);
 	undo_paint_push_end(UNDO_PAINT_IMAGE);
 
 	/* duplicate warning, see texpaint_init




More information about the Bf-blender-cvs mailing list