Decrease frequency of mallocs during multires sculpt smoothing
authorNicholas Bishop <nicholasbishop@gmail.com>
Tue, 12 Jun 2012 11:22:10 +0000 (11:22 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Tue, 12 Jun 2012 11:22:10 +0000 (11:22 +0000)
commit2062ca6b6ce8393a85089df3a2b1fd51333450bb
tree2865b5305ee43f3274af0acbdfcd927fc131eb16
parent552887251fa984cc7ff8e15aed59e82227d47c22
Decrease frequency of mallocs during multires sculpt smoothing

Patch from Jason Wilkins.

Creates a pool of allocations (one for each OpenMP thread) rather than
allocating every time do_multires_smooth_brush() is called.
source/blender/editors/sculpt_paint/sculpt.c