Blender Git Commit Log

Git Commits -> Revision 0647232

Revision 0647232 by Philipp Oeser (master)
December 19, 2019, 19:58 (GMT)
Fix particle editmode undo not doing proper updates when child particles
are visible

Not freeing PTCacheEdit and tagging batch cache dirty on undo will have
a couple of consequences. This patch fixes:
- crash deleting a particle, then undo
- basically any edit (combing, ...), then undo will leave child hairs
untouched
- adding hairs (through mirror, add tool, ...), then undo will leave
'orphaned' child hairs

See also D5755 for a related discussion

Fixes the crasher mentioned in T69000

Might move this to a utility function later [since it is used in more
places], but that is for after going over some more reports...

Reviewers: sergey

Differential Revision: https://developer.blender.org/D5912

Commit Details:

Full Hash: 0647232ac545a7c56f6d5abd7700143fc4455024
Parent Commit: 66d773c
Lines Changed: +5, -0

1 Modified Path:

/source/blender/editors/physics/particle_edit_undo.c (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021