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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-11-24 18:50:49 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-11-24 18:55:41 +0300
commitf5910608566861e136489f3643eb604d0c169558 (patch)
tree3f8340f124d5205dab8b88a4a7c86d9fddbc9cab /tests/python/view_layer
parent8a1a0532503681ce5b4f5ec9ab8c2c8ccd13d120 (diff)
Backgroudn set tests: Correct evaluation order
All depsgraphs are sharing same object state for now, which means doing set scene evaluation after main scene evaluation will override all modifications done by the main scene.
Diffstat (limited to 'tests/python/view_layer')
-rw-r--r--tests/python/view_layer/test_background_set.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/python/view_layer/test_background_set.py b/tests/python/view_layer/test_background_set.py
index 5f1d31e823f..a26229d53a9 100644
--- a/tests/python/view_layer/test_background_set.py
+++ b/tests/python/view_layer/test_background_set.py
@@ -26,7 +26,6 @@ class UnitTesting(ViewLayerTesting):
# Update depsgraph.
main_scene.update()
- background_scene.update()
# Safety check, there should be no objects in thew newly created scene.
self.assertEqual(0, len(bpy.context.depsgraph.objects))
@@ -37,7 +36,6 @@ class UnitTesting(ViewLayerTesting):
# Update depsgraph.
main_scene.update()
- background_scene.update()
# Test if objects were properly added to depsgraph.
self.assertEqual(3, len(bpy.context.depsgraph.objects))
@@ -53,7 +51,6 @@ class UnitTesting(ViewLayerTesting):
# Update depsgraph.
main_scene.update()
- background_scene.update()
self.assertEqual(0, len(bpy.context.depsgraph.objects))