diff options
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_clip.py | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index 0cf3a921167..b5e23f146b1 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -162,22 +162,25 @@ class CLIP_PT_tools_tracking(Panel): def draw(self, context): layout = self.layout - # clip = context.space_data.clip # UNUSED row = layout.row(align=True) - row.operator("clip.track_markers", text="", icon='FRAME_PREV').backwards = True + props = row.operator("clip.track_markers", text="", icon='FRAME_PREV') + props.backwards = True props = row.operator("clip.track_markers", text="", icon='PLAY_REVERSE') props.backwards = True props.sequence = True - row.operator("clip.track_markers", text="", icon='PLAY').sequence = True + props = row.operator("clip.track_markers", text="", icon='PLAY') + props.sequence = True row.operator("clip.track_markers", text="", icon='FRAME_NEXT') col = layout.column(align=True) - col.operator("clip.clear_track_path", text="Clear After").action = 'REMAINED' + props = col.operator("clip.clear_track_path", text="Clear After") + props.action = 'REMAINED' - col.operator("clip.clear_track_path", text="Clear Before").action = 'UPTO' + props = col.operator("clip.clear_track_path", text="Clear Before") + props.action = 'UPTO' col.operator("clip.clear_track_path", text="Clear").action = 'ALL' layout.operator("clip.join_tracks", text="Join") @@ -371,7 +374,7 @@ class CLIP_PT_objects(Panel): def draw(self, context): layout = self.layout - + sc = context.space_data tracking = sc.clip.tracking @@ -478,7 +481,8 @@ class CLIP_PT_tracking_camera(Panel): label = bpy.types.CLIP_MT_camera_presets.bl_label row.menu('CLIP_MT_camera_presets', text=label) row.operator("clip.camera_preset_add", text="", icon='ZOOMIN') - row.operator("clip.camera_preset_add", text="", icon='ZOOMOUT').remove_active = True + props = row.operator("clip.camera_preset_add", text="", icon='ZOOMOUT') + props.remove_active = True row = layout.row(align=True) sub = row.split(percentage=0.65) @@ -942,7 +946,8 @@ class CLIP_MT_select(Menu): layout.separator() - layout.operator("clip.select_all", text="Select/Deselect all").action = 'TOGGLE' + props = layout.operator("clip.select_all", text="Select/Deselect all") + props.action = 'TOGGLE' layout.operator("clip.select_all", text="Inverse").action = 'INVERT' layout.menu("CLIP_MT_select_grouped") @@ -967,8 +972,12 @@ class CLIP_MT_tracking_specials(Menu): def draw(self, context): layout = self.layout - layout.operator("clip.disable_markers", text="Enable Markers").action = 'ENABLE' - layout.operator("clip.disable_markers", text="Disable markers").action = 'DISABLE' + props = layout.operator("clip.disable_markers", + text="Enable Markers") + props.action = 'ENABLE' + + props = layout.operator("clip.disable_markers", text="Disable markers") + props.action = 'DISABLE' layout.separator() layout.operator("clip.set_origin") |