Fix T49060: crashes during render with no apparent reason...
authorBastien Montagne <montagne29@wanadoo.fr>
Sat, 20 Aug 2016 14:03:33 +0000 (16:03 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Sat, 20 Aug 2016 14:03:33 +0000 (16:03 +0200)
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.

source/blender/editors/space_time/space_time.c

index 021c4a54b0af1d86e3a55db752baa34671b5225e..15eb154c757b5740300119eeceb68d16865e2bcd 100644 (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 */