[Bf-blender-cvs] [f5910608566] blender2.8: Backgroudn set tests: Correct evaluation order

Sergey Sharybin noreply at git.blender.org
Fri Nov 24 17:10:40 CET 2017


Commit: f5910608566861e136489f3643eb604d0c169558
Author: Sergey Sharybin
Date:   Fri Nov 24 16:50:49 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBf5910608566861e136489f3643eb604d0c169558

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.

===================================================================

M	tests/python/view_layer/test_background_set.py

===================================================================

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))



More information about the Bf-blender-cvs mailing list