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!
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user