From 93cf1531d05a341a3be715f41bb48bd6f665afb2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 14 Jan 2012 06:30:27 +0000 Subject: fix own bug [#29875] Due to operators now reusing there last-used settings, some UI options are more or less broken (esp. in shortcuts and menu entries) also prefer *.select_all rather then *.select_inverse operators, since this is an option for select_all. --- release/scripts/startup/bl_ui/space_clip.py | 30 ++++++++++------------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_clip.py') diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index aa31b8493ec..aef6e317e77 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -166,25 +166,19 @@ class CLIP_PT_tools_tracking(Panel): row = layout.row(align=True) - props = row.operator("clip.track_markers", text="", icon='FRAME_PREV') - props.backwards = True + row.operator("clip.track_markers", text="", icon='FRAME_PREV').backwards = True props = row.operator("clip.track_markers", text="", - icon='PLAY_REVERSE') + icon='PLAY_REVERSE') props.backwards = True props.sequence = True - props = row.operator("clip.track_markers", text="", icon='PLAY') - props.sequence = True + row.operator("clip.track_markers", text="", icon='PLAY').sequence = True row.operator("clip.track_markers", text="", icon='FRAME_NEXT') col = layout.column(align=True) - props = col.operator("clip.clear_track_path", text="Clear After") - props.action = 'REMAINED' - - props = col.operator("clip.clear_track_path", text="Clear Before") - props.action = 'UPTO' + col.operator("clip.clear_track_path", text="Clear After").action = 'REMAINED' - props = col.operator("clip.clear_track_path", text="Clear") - props.action = 'ALL' + col.operator("clip.clear_track_path", text="Clear Before").action = 'UPTO' + col.operator("clip.clear_track_path", text="Clear").action = 'ALL' layout.operator("clip.join_tracks", text="Join") @@ -484,8 +478,7 @@ 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') - props = row.operator("clip.camera_preset_add", text="", icon='ZOOMOUT') - props.remove_active = True + row.operator("clip.camera_preset_add", text="", icon='ZOOMOUT').remove_active = True row = layout.row(align=True) sub = row.split(percentage=0.65) @@ -938,7 +931,7 @@ class CLIP_MT_select(Menu): layout.separator() - layout.operator("clip.select_all", text="Select/Deselect all") + layout.operator("clip.select_all", text="Select/Deselect all").action = 'TOGGLE' layout.operator("clip.select_all", text="Inverse").action = 'INVERT' layout.menu("CLIP_MT_select_grouped") @@ -963,11 +956,8 @@ class CLIP_MT_tracking_specials(Menu): def draw(self, context): layout = self.layout - 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.operator("clip.disable_markers", text="Enable Markers").action = 'ENABLE' + layout.operator("clip.disable_markers", text="Disable markers").action = 'DISABLE' layout.separator() layout.operator("clip.set_origin") -- cgit v1.2.3