Fix (unreported) missing updates in scripts/docs after scene.update() removal.

This should really have been done together with API changes, simple
usage of grep does the trick to catch most places needing updates.
This commit is contained in:
2019-06-04 14:36:53 +02:00
parent 1d2e4c44bd
commit 33e8db94b1
25 changed files with 41 additions and 40 deletions

View File

@@ -31,14 +31,14 @@ class UnitTesting(ViewLayerTesting):
scene.view_layers.remove(v)
# update depsgraph
scene.update()
view_layer.update()
# create group
group = bpy.data.groups.new("Switch")
group.objects.link(ob)
# update depsgraph
scene.update()
view_layer.update()
# instance the group
empty = bpy.data.objects.new("Empty", None)
@@ -57,7 +57,7 @@ class UnitTesting(ViewLayerTesting):
self.assertFalse(empty.select_get())
# update depsgraph
scene.update()
view_layer.update()
# delete the original object
bpy.ops.object.delete()