[Bf-blender-cvs] [57573e0da99] blender2.8: Fix copy tracking settings operators
Philipp Oeser
noreply at git.blender.org
Wed Nov 14 12:43:26 CET 2018
Commit: 57573e0da994d4f81a830a0b25f89e49ef44ad9a
Author: Philipp Oeser
Date: Wed Nov 14 12:32:49 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB57573e0da994d4f81a830a0b25f89e49ef44ad9a
Fix copy tracking settings operators
use keyword arguments
===================================================================
M release/scripts/startup/bl_operators/clip.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py
index 975a59e1a36..74b3e420cdf 100644
--- a/release/scripts/startup/bl_operators/clip.py
+++ b/release/scripts/startup/bl_operators/clip.py
@@ -99,7 +99,7 @@ def CLIP_default_settings_from_track(clip, track, framenr):
width = clip.size[0]
height = clip.size[1]
- marker = track.markers.find_frame(framenr, False)
+ marker = track.markers.find_frame(framenr, exact=False)
pattern_bb = marker.pattern_bound_box
pattern = Vector(pattern_bb[1]) - Vector(pattern_bb[0])
@@ -1053,11 +1053,11 @@ class CLIP_OT_track_settings_to_track(bpy.types.Operator):
track = clip.tracking.tracks.active
framenr = context.scene.frame_current - clip.frame_start + 1
- marker = track.markers.find_frame(framenr, False)
+ marker = track.markers.find_frame(framenr, exact=False)
for t in clip.tracking.tracks:
if t.select and t != track:
- marker_selected = t.markers.find_frame(framenr, False)
+ marker_selected = t.markers.find_frame(framenr, exact=False)
for attr in self._attrs_track:
setattr(t, attr, getattr(track, attr))
for attr in self._attrs_marker:
More information about the Bf-blender-cvs
mailing list