Blender Git Commit Log

Git Commits -> Revision b8438a8

November 3, 2015, 10:49 (GMT)
Fix T46626: Crash generating previews

Brush.toggle_brush was allowed to be an invalid pointer,
it worked for the one operator that used it - but in general bad practice,
requiring a lookup on every access.

Ensure the pointer is kept valid now.

Commit Details:

Full Hash: b8438a870dffb7a3ca3636d8bfa4e37dbf907c71
Parent Commit: e5ccc1e
Committed By: Sergey Sharybin
Lines Changed: +22, -5

5 Modified Paths:

/source/blender/blenkernel/BKE_brush.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/brush.c (+16, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+2, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+2, -5) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021