Blender Git Loki

Git Commits -> Revision 7aafa32

Revision 7aafa32 by Sergey Sharybin (master)
September 14, 2017, 12:03 (GMT)
Fix T51416: Blender Crashes while moving Sliders

The issue here was that removing datablock from main database will poke editors
update, which includes buttons context to free users of texture. Since Cycles
will free datablocks from job thread, it might crash Blender since main thread
might be in the middle of drawing.

Solved by exposing extra arguments to bpy.data.foo.remove() which indicates
whether we want to perform ID user count and interface updates. While scripts
shouldn't be using those normally, this is the only way to allow Cycles to skip
interface update when removing datablock.

Reviewers: mont29

Reviewed By: mont29

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

Commit Details:

Full Hash: 7aafa32c09bb93b44f746743b67735b1ae73ab21
Parent Commit: ff79406
Lines Changed: +110, -5

2 Modified Paths:

/intern/cycles/blender/blender_mesh.cpp (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+108, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021