From 29fc56b5bb0762baf8cc2639cf977f6a835f9633 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 1 Mar 2010 12:44:28 +0000 Subject: bugfix [#21405] Error on loading of thumbnails from network renderer [27204] --- release/scripts/modules/bpy/ops.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'release/scripts/modules/bpy/ops.py') diff --git a/release/scripts/modules/bpy/ops.py b/release/scripts/modules/bpy/ops.py index f8f01730a49..15e5df15246 100644 --- a/release/scripts/modules/bpy/ops.py +++ b/release/scripts/modules/bpy/ops.py @@ -159,7 +159,12 @@ class bpy_ops_submodule_op(object): if 'FINISHED' in ret: import bpy - bpy.context.scene.update() + scene = bpy.context.scene + if scene: # None in backgroud mode + scene.update() + else: + for scene in bpy.data.scenes: + scene.update() return ret -- cgit v1.2.3