Fix T49060: crashes during render with no apparent reason...

Was a concurrent access of pointcache from both particle system and UI (time space).

Pointcache not being threadsafe is really an issue to be addressed for its next version,
for now simply locking spacetime (like we already do with 3DView), not ideal fix
but it's working and safe for release.
This commit is contained in:
Bastien Montagne 2016-08-20 16:03:33 +02:00
parent 67dcad4011
commit 43bb8f12f4
Notes: blender-bot 2023-02-14 09:44:56 +01:00
Referenced by issue #49060, crashes during render with no apparent reason..
1 changed files with 1 additions and 0 deletions

View File

@ -813,6 +813,7 @@ void ED_spacetype_time(void)
art->draw = time_main_region_draw;
art->listener = time_main_region_listener;
art->keymap = time_keymap;
art->lock = 1; /* Due to pointcache, see T4960. */
BLI_addhead(&st->regiontypes, art);
/* regions: header */