Commented out some unimplemented operators, avoids gray text in the UI

Also I noticed there's a check on strip.type == 'EFFECT', which can never be true because strip.type actually contains the type of effect, e.g. "GLOW", "ADD" etc. Not a big problem currently because it's not used.
This commit is contained in:
Elia Sarti 2010-04-04 18:56:03 +00:00
parent 415a6f6015
commit 687c752b75

@ -245,21 +245,24 @@ class SEQUENCER_MT_strip(bpy.types.Menu):
if strip:
stype = strip.type
if stype == 'EFFECT':
layout.separator()
layout.operator("sequencer.effect_change")
layout.operator("sequencer.effect_reassign_inputs")
# XXX note strip.type is never equal to 'EFFECT', look at seq_type_items within rna_sequencer.c
if stype == 'EFFECT':
pass
# layout.separator()
# layout.operator("sequencer.effect_change")
# layout.operator("sequencer.effect_reassign_inputs")
elif stype == 'IMAGE':
layout.separator()
# layout.operator("sequencer.image_change")
layout.operator("sequencer.rendersize")
elif stype == 'SCENE':
layout.separator()
layout.operator("sequencer.scene_change", text="Change Scene")
pass
# layout.separator()
# layout.operator("sequencer.scene_change", text="Change Scene")
elif stype == 'MOVIE':
layout.separator()
layout.operator("sequencer.movie_change")
# layout.operator("sequencer.movie_change")
layout.operator("sequencer.rendersize")
layout.separator()