DEBUG_IO: add sanity check on libdata in undo step as well.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 17 Oct 2018 14:43:02 +0000 (16:43 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 17 Oct 2018 14:43:02 +0000 (16:43 +0200)
commit5f8222501c2267ae82829ccf6f6df295a8b8ec55
tree4ae7d41d29e7ede31fd82b8c91a6dcecff8123df
parent496c325ffa84cec631c8e45723decbb90037156a
DEBUG_IO: add sanity check on libdata in undo step as well.

There are serious suspicions that weird corruptions faced by studio
artists may happen in undo/redo code, so let's see whether that's the
case.

With this, and when --debug-io arg is passed on startup, the whole lib
data are checked at every undo. This makes undo slower (from two to
three times slower), but it could help us spot better what happens...
source/blender/editors/undo/CMakeLists.txt
source/blender/editors/undo/ed_undo.c