[Bf-extensions-cvs] [cd9213d6] master: Fix T59778: old (broken) object selection code in camera dolly crane rig add-on.
Bastien Montagne
noreply at git.blender.org
Fri Dec 28 10:28:16 CET 2018
Commit: cd9213d669fa8cd585dcadb1a5b09fcdedd1212e
Author: Bastien Montagne
Date: Fri Dec 28 10:25:35 2018 +0100
Branches: master
https://developer.blender.org/rBAcd9213d669fa8cd585dcadb1a5b09fcdedd1212e
Fix T59778: old (broken) object selection code in camera dolly crane rig add-on.
Report and patch by Amir Shehata @amir.shehata, thanks!
===================================================================
M camera_dolly_crane_rigs.py
===================================================================
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)
More information about the Bf-extensions-cvs
mailing list