Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-11-11 13:22:38 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-11-11 13:22:38 +0300
commitfd65ebf39a708fb57b8fe3ebbe14111380849f97 (patch)
tree4aba89a535641f5fa18f80dfbfdfd37f0b798b2f /tests
parent0dea135a36e5f9d06c60270f0bcca64a20a2cbd6 (diff)
Fix T57776: Error when adding a Torus to the scene.
Not all Object.select_set() cases had been updated to new API... Tsst. ;)
Diffstat (limited to 'tests')
-rw-r--r--tests/python/view_layer/test_object_copy.py2
-rw-r--r--tests/python/view_layer/view_layer_common.py2
2 files changed, 2 insertions, 2 deletions
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()