Merge branch 'master' into blender2.8
[blender.git] / release / scripts / startup / bl_operators / clip.py
index f63b0495d021ee67674c5563c3d123d82c5f223a..ea68641f68b09eddf8d3cd0f27a73c148820c50a 100644 (file)
@@ -235,7 +235,7 @@ class CLIP_OT_track_to_empty(Operator):
         ob = None
 
         ob = bpy.data.objects.new(name=track.name, object_data=None)
-        ob.select = True
+        ob.select_set(action='SELECT')
         context.scene.objects.link(ob)
         context.scene.objects.active = ob
 
@@ -514,7 +514,7 @@ object's movement caused by this constraint"""
         # XXX, should probably use context.selected_editable_objects
         # since selected objects can be from a lib or in hidden layer!
         for ob in scene.objects:
-            if ob.select:
+            if ob.select_set(action='SELECT'):
                 self._bake_object(scene, ob)
 
         return {'FINISHED'}