Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-07 20:27:18 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-07 20:27:18 +0400
commitb27a6c6b0db0b126dcaa6188075564601e8aa6b4 (patch)
treec83a7b8602c0626f8dd18660a7be75195a656663 /source/blender/editors/render
parent043efbc464017c8ff20cf09fe7d08cdc50a04aba (diff)
Fix #33114: crash with render frame update script and GLSL.
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r--source/blender/editors/render/render_update.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c
index c5320fde0ff..0a2ca379518 100644
--- a/source/blender/editors/render/render_update.c
+++ b/source/blender/editors/render/render_update.c
@@ -378,6 +378,12 @@ static void scene_changed(Main *bmain, Scene *UNUSED(scene))
void ED_render_id_flush_update(Main *bmain, ID *id)
{
+ /* this can be called from render or baking thread when a python script makes
+ * changes, in that case we don't want to do any editor updates, and making
+ * GPU changes is not possible because OpenGL only works in the main thread */
+ if (!BLI_thread_is_main())
+ return;
+
switch (GS(id->name)) {
case ID_MA:
material_changed(bmain, (Material *)id);