Fix memfile undo decoding creating undo steps
authorCampbell Barton <ideasman42@gmail.com>
Wed, 9 Jan 2019 05:53:44 +0000 (16:53 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 9 Jan 2019 21:02:51 +0000 (08:02 +1100)
commit7f5bae28db0ce3d3bb62c66b45bba1fedfecaf93
treeb2427f0369fd54573c505c2051e1244bd3d0742a
parentea0abf52bfab2677f58023833146783e54f8f4c0
Fix memfile undo decoding creating undo steps

Exiting modes shouldn't be needed since loading the new memfile
will free the old data.

Sculpt mode dynamic topology was adding undo data on exiting the mode
which isn't logical in this case and can be avoided altogether.
source/blender/editors/undo/memfile_undo.c