Blender Git Loki

Git Commits -> Revision aafe528

January 1, 2018, 14:43 (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: aafe528c7d1668e580ad997ce9e9671f9450906a
Parent Commit: 9c39f02
Committed By: Bastien Montagne
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