Blender Git Loki

Git Commits -> Revision 0550011

Revision 0550011 by Bastien Montagne (master)
June 12, 2016, 15:06 (GMT)
Fix T48604: Crash on undo due to bad drawing code.

Short story: draw_lamp would add itself to delayed transp drawing list from 'xray' drawing step.
This was broken, since delayed transp drawing list is always handled **before** delayed xray one.

After undo it lead to segfault crash, v3d->afterdraw_transp still having reference to old freed scene's base.

Also added asserts that those afterdraw list are empty at end of drawing step, should help
avoiding that kind of issue in future.

Commit Details:

Full Hash: 055001111e226e953b18c31deaacc2e1e7394f78
Parent Commit: 2033f47
Lines Changed: +5, -1

2 Modified Paths:

/source/blender/editors/space_view3d/drawobject.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+4, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021