forked from bartvdbraak/blender
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:
parent
8a1a053250
commit
f591060856
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user