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.
This commit is contained in:
Sergey Sharybin 2017-11-24 16:50:49 +01:00
parent 8a1a053250
commit f591060856
1 changed files with 0 additions and 3 deletions

View File

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