Tracking: Create mesh from selected tracks only
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 31 Oct 2017 13:01:44 +0000 (14:01 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 31 Oct 2017 13:02:32 +0000 (14:02 +0100)
Patch by Sebastian Koenig. thanks!

release/scripts/startup/bl_operators/clip.py

index f63b0495d021ee67674c5563c3d123d82c5f223a..6356121cffdb9ef6f3bd8d4e2b3650b38d5d0014 100644 (file)
@@ -303,7 +303,7 @@ class CLIP_OT_bundles_to_mesh(Operator):
 
         mesh = bpy.data.meshes.new(name="Tracks")
         for track in tracking_object.tracks:
-            if track.has_bundle:
+            if track.has_bundle and track.select == True:
                 new_verts.append(track.bundle)
 
         if new_verts: