Tracking: Make object created form tracks active and selected

This commit is contained in:
Sergey Sharybin 2018-03-21 12:33:04 +01:00
parent 658fb7f453
commit 23ffd4ec39

@ -312,6 +312,8 @@ class CLIP_OT_bundles_to_mesh(Operator):
ob = bpy.data.objects.new(name="Tracks", object_data=mesh)
ob.matrix_world = matrix
context.scene.objects.link(ob)
ob.select = True
context.scene.objects.active = ob
else:
self.report({'WARNING'}, "No usable tracks selected")