Blender Git Loki

Git Commits -> Revision 6366a8c

Revision 6366a8c by Sergey Sharybin (master)
August 12, 2013, 14:37 (GMT)
Fix crash happening in particle code caused by non-reentrant qsort()

Particle system code used global variable to sort hair by orig index,
which is not safe for threading at all.

Replaced this with usage of reentrant version of qsort, which is
now implemented in BLI. It was moved from recast navigation code
to BLI, so more areas could use it (if needed).

Commit Details:

Full Hash: 6366a8c61132eb034975606ebbc9a7ffcd0b353f
SVN Revision: 59087
Parent Commit: 033d395
Lines Changed: +215, -143

2 Added Paths:

/source/blender/blenlib/BLI_sort.h (+41, -0) (View)
/source/blender/blenlib/intern/sort.c (+160, -0) (View)

5 Modified Paths:

/extern/recastnavigation/recast-capi.cpp (+0, -126) (Diff)
/extern/recastnavigation/recast-capi.h (+0, -5) (Diff)
/source/blender/blenkernel/intern/navmesh_conversion.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+10, -11) (Diff)
/source/blender/blenlib/CMakeLists.txt (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021