From fd65ebf39a708fb57b8fe3ebbe14111380849f97 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 11 Nov 2018 11:22:38 +0100 Subject: Fix T57776: Error when adding a Torus to the scene. Not all Object.select_set() cases had been updated to new API... Tsst. ;) --- tests/python/view_layer/test_object_copy.py | 2 +- tests/python/view_layer/view_layer_common.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/python/view_layer/test_object_copy.py b/tests/python/view_layer/test_object_copy.py index 19a7c56b989..2ca5e170192 100644 --- a/tests/python/view_layer/test_object_copy.py +++ b/tests/python/view_layer/test_object_copy.py @@ -46,7 +46,7 @@ class UnitTesting(ViewLayerTesting): if mode == 'DUPLICATE': # assuming the latest layer is the active layer bpy.ops.object.select_all(action='DESELECT') - three_c.select_set(action='SELECT') + three_c.select_set(True) bpy.ops.object.duplicate() elif mode == 'NAMED': diff --git a/tests/python/view_layer/view_layer_common.py b/tests/python/view_layer/view_layer_common.py index 25cf7c80d96..709ef4afbfe 100644 --- a/tests/python/view_layer/view_layer_common.py +++ b/tests/python/view_layer/view_layer_common.py @@ -416,7 +416,7 @@ class ViewLayerTesting(unittest.TestCase): elif del_mode == 'OPERATOR': bpy.context.scene.update() # update depsgraph bpy.ops.object.select_all(action='DESELECT') - ob.select_set(action='SELECT') + ob.select_set(True) self.assertTrue(ob.select_get()) bpy.ops.object.delete() -- cgit v1.2.3