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:
authorCampbell Barton <ideasman42@gmail.com>2010-03-01 15:44:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-03-01 15:44:28 +0300
commit29fc56b5bb0762baf8cc2639cf977f6a835f9633 (patch)
tree174c97862f34590a9b80f691a38049bb4c28c843 /release/scripts/modules/bpy/ops.py
parentc0984d59cc845164d4b6796f7d3701b3279a60fe (diff)
bugfix [#21405] Error on loading of thumbnails from network renderer [27204]
Diffstat (limited to 'release/scripts/modules/bpy/ops.py')
-rw-r--r--release/scripts/modules/bpy/ops.py7
1 files changed, 6 insertions, 1 deletions
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