remove ICON prefix from the enum, for python this is redundant eg.

layout.prop("setting", icon='ICON_BLAH_BLAH')

Also reverted previous commit, the cursor subtype just needed to be added to the switch statement.
This commit is contained in:
2009-12-10 10:23:53 +00:00
parent 9c5019a9a9
commit b5740b0e77
33 changed files with 201 additions and 200 deletions

View File

@@ -297,9 +297,9 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel):
row = layout.row()
if strip.mute == True:
row.prop(strip, "mute", toggle=True, icon='ICON_RESTRICT_VIEW_ON', text="")
row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON', text="")
elif strip.mute is False:
row.prop(strip, "mute", toggle=True, icon='ICON_RESTRICT_VIEW_OFF', text="")
row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_OFF', text="")
sub = row.row()
sub.active = (not strip.mute)
@@ -517,9 +517,9 @@ class SEQUENCER_PT_sound(SequencerButtonsPanel):
row = layout.row()
if strip.sound.packed_file:
row.operator("sound.unpack", icon='ICON_PACKAGE', text="Unpack")
row.operator("sound.unpack", icon='PACKAGE', text="Unpack")
else:
row.operator("sound.pack", icon='ICON_UGLYPACKAGE', text="Pack")
row.operator("sound.pack", icon='UGLYPACKAGE', text="Pack")
row.prop(strip.sound, "caching")