diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-11 13:22:38 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-11 13:22:38 +0300 |
commit | fd65ebf39a708fb57b8fe3ebbe14111380849f97 (patch) | |
tree | 4aba89a535641f5fa18f80dfbfdfd37f0b798b2f /release/scripts/startup/bl_operators/object.py | |
parent | 0dea135a36e5f9d06c60270f0bcca64a20a2cbd6 (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 'release/scripts/startup/bl_operators/object.py')
-rw-r--r-- | release/scripts/startup/bl_operators/object.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py index a24f6a742c1..fddf15155fc 100644 --- a/release/scripts/startup/bl_operators/object.py +++ b/release/scripts/startup/bl_operators/object.py @@ -92,7 +92,7 @@ class SelectPattern(Operator): if item_parent is not None: item_parent.select_tail = True else: - item.select_set(action='SELECT') + item.select_set(True) return {'FINISHED'} @@ -139,7 +139,7 @@ class SelectCamera(Operator): bpy.ops.object.select_all(action='DESELECT') view_layer.objects.active = camera # camera.hide = False # XXX TODO where is this now? - camera.select_set(action='SELECT') + camera.select_set(True) return {'FINISHED'} return {'CANCELLED'} @@ -205,7 +205,7 @@ class SelectHierarchy(Operator): bpy.ops.object.select_all(action='DESELECT') for obj in select_new: - obj.select_set(action='SELECT') + obj.select_set(True) view_layer.objects.active = act_new return {'FINISHED'} @@ -646,8 +646,8 @@ class MakeDupliFace(Operator): ob_new.use_dupli_faces_scale = True ob_new.dupli_faces_scale = 1.0 / SCALE_FAC - ob_inst.select_set(action='SELECT') - ob_new.select_set(action='SELECT') + ob_inst.select_set(True) + ob_new.select_set(True) def execute(self, context): self._main(context) |