Fix T61226: Make hair editing (more?) thread safe
authorJacques Lucke <mail@jlucke.com>
Mon, 18 Mar 2019 12:31:54 +0000 (13:31 +0100)
committerJacques Lucke <mail@jlucke.com>
Mon, 18 Mar 2019 12:31:54 +0000 (13:31 +0100)
commit2b79f274e38b10bd28bae34e98990ae95a0eafc0
tree516a15a896fac0140ac13a5fdd3d3698c21e4281
parent4d2672ca7fd1dc11a50c29f271032f43af164f22
Fix T61226: Make hair editing (more?) thread safe

This replaces the global `PEData->dist` with a thread local variable
that is passed into the callback functions separately.

There are two new function types which have `Hit` in the name.
Those take the distance to the mouse as an additional parameter.

Reviewers: sergey

Differential Revision: https://developer.blender.org/D4538
source/blender/editors/physics/particle_edit.c