From 33e8db94b1e7df2bd7fdbf15b96368c8d16d3b4e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 4 Jun 2019 14:36:53 +0200 Subject: 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. --- tests/python/view_layer/test_evaluation_selectability_f.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/python/view_layer/test_evaluation_selectability_f.py') diff --git a/tests/python/view_layer/test_evaluation_selectability_f.py b/tests/python/view_layer/test_evaluation_selectability_f.py index a902dd1dada..16aa86a0c2a 100644 --- a/tests/python/view_layer/test_evaluation_selectability_f.py +++ b/tests/python/view_layer/test_evaluation_selectability_f.py @@ -23,14 +23,14 @@ class UnitTesting(ViewLayerTesting): scene_collection = scene.master_collection.collections.new('collection') layer_collection = view_layer.collections.link(scene_collection) - bpy.context.scene.update() # update depsgraph + view_layer.update() # update depsgraph scene_collection.objects.link(cube) self.assertTrue(layer_collection.enabled) self.assertTrue(layer_collection.selectable) - bpy.context.scene.update() # update depsgraph + view_layer.update() # update depsgraph cube.select_set(True) self.assertTrue(cube.select_get()) -- cgit v1.2.3