Fix T59778: old (broken) object selection code in camera dolly crane rig add-on.

Report and patch by Amir Shehata @amir.shehata, thanks!
This commit is contained in:
Bastien Montagne 2018-12-28 10:25:35 +01:00
parent 09fa924179
commit cd9213d669
Notes: blender-bot 2023-02-14 04:20:35 +01:00
Referenced by issue blender/blender#59778, Fixed a problem with release/scripts/addons/camera_dolly_crane_rigs.py
1 changed files with 2 additions and 2 deletions

View File

@ -387,8 +387,8 @@ def add_DOF_Empty():
cam.dof_object = obj
# reselect the rig
view_layer.objects.active = rig
obj.select = False
rig.select = True
obj.select_set(False)
rig.select_set(True)
bpy.ops.object.mode_set(mode=smode, toggle=False)