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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-12-28 12:25:35 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-12-28 12:28:07 +0300
commitcd9213d669fa8cd585dcadb1a5b09fcdedd1212e (patch)
tree78c0bde492c4c5a8f338c78e9d77f05a403409b3 /camera_dolly_crane_rigs.py
parent09fa92417963ffe86a63d7128decb4d575f6db80 (diff)
Fix T59778: old (broken) object selection code in camera dolly crane rig add-on.
Report and patch by Amir Shehata @amir.shehata, thanks!
Diffstat (limited to 'camera_dolly_crane_rigs.py')
-rw-r--r--camera_dolly_crane_rigs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/camera_dolly_crane_rigs.py b/camera_dolly_crane_rigs.py
index 5f482ac4..d0570afe 100644
--- a/camera_dolly_crane_rigs.py
+++ b/camera_dolly_crane_rigs.py
@@ -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)