mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T57776: Error when adding a Torus to the scene.
Not all Object.select_set() cases had been updated to new API... Tsst. ;)
This commit is contained in:
parent
0dea135a36
commit
fd65ebf39a
6 changed files with 17 additions and 17 deletions
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue