Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2015-12-15 01:52:01 +0300
committerJulian Eisel <eiseljulian@gmail.com>2015-12-15 03:05:40 +0300
commit7fa72b8970b921190ae4fbd56748c0c808f870d1 (patch)
treecd70e58392eca3d1c90082cffac2f0c40d7fb892 /release
parent6f6c26bdb48a6e6d4e350ca6e1a5f0c6347635a7 (diff)
Fix 'change path' opening file browser with wrong filter for sound strips
Changing path of a sound strip (select strip->C->'Path/Files') opened a file browser without filter for sound files, so sound files weren't visible. Also, for movie/image files, now only movie **or** image files are visible in the file browser by default (instead of both). Reported by @venomgfx, thanks!
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index b08bff13967..c0f58772be3 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -267,12 +267,23 @@ class SEQUENCER_MT_change(Menu):
def draw(self, context):
layout = self.layout
+ strip = act_strip(context)
layout.operator_context = 'INVOKE_REGION_WIN'
layout.operator_menu_enum("sequencer.change_effect_input", "swap")
layout.operator_menu_enum("sequencer.change_effect_type", "type")
- layout.operator("sequencer.change_path", text="Path/Files")
+ prop = layout.operator("sequencer.change_path", text="Path/Files")
+
+ if strip:
+ stype = strip.type
+
+ if stype == 'IMAGE':
+ prop.filter_image = True;
+ elif stype == 'MOVIE':
+ prop.filter_movie = True;
+ elif stype == 'SOUND':
+ prop.filter_sound = True;
class SEQUENCER_MT_frame(Menu):