Fix T57559: fix wrong disable/mute icons for particles and shape keys.

This commit is contained in:
2018-11-01 17:20:12 +01:00
parent 97bb56711e
commit c7752df86d
2 changed files with 1 additions and 3 deletions

View File

@@ -126,14 +126,12 @@ class PARTICLE_UL_particle_systems(bpy.types.UIList):
"show_render",
emboss=False,
icon_only=True,
icon='RESTRICT_RENDER_OFF' if md.show_render else 'RESTRICT_RENDER_ON',
)
layout.prop(
md,
"show_viewport",
emboss=False,
icon_only=True,
icon='RESTRICT_VIEW_OFF' if md.show_viewport else 'RESTRICT_VIEW_ON',
)
elif self.layout_type == 'GRID':

View File

@@ -722,7 +722,7 @@ static void rna_def_keyblock(BlenderRNA *brna)
prop = RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", KEYBLOCK_MUTE);
RNA_def_property_ui_text(prop, "Mute", "Mute this shape key");
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, 1);
RNA_def_property_ui_icon(prop, ICON_HIDE_ON, -1);
RNA_def_property_update(prop, 0, "rna_Key_update_data");
prop = RNA_def_property(srna, "slider_min", PROP_FLOAT, PROP_NONE);