Eevee: Fix "Show Irradiance/cubemap" icons
This commit is contained in:
@@ -464,17 +464,11 @@ class RENDER_PT_eevee_indirect_lighting_display(RenderButtonsPanel, Panel):
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(props, "gi_cubemap_display_size", text="Cubemap Size")
|
||||
if props.gi_show_cubemaps:
|
||||
row.prop(props, "gi_show_cubemaps", text="", toggle=True, icon='HIDE_OFF')
|
||||
else:
|
||||
row.prop(props, "gi_show_cubemaps", text="", toggle=True, icon='HIDE_ON')
|
||||
row.prop(props, "gi_show_cubemaps", text="", toggle=True)
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(props, "gi_irradiance_display_size", text="Irradiance Size")
|
||||
if props.gi_show_irradiance:
|
||||
row.prop(props, "gi_show_irradiance", text="", toggle=True, icon='HIDE_OFF')
|
||||
else:
|
||||
row.prop(props, "gi_show_irradiance", text="", toggle=True, icon='HIDE_ON')
|
||||
row.prop(props, "gi_show_irradiance", text="", toggle=True)
|
||||
|
||||
|
||||
class RENDER_PT_eevee_film(RenderButtonsPanel, Panel):
|
||||
|
||||
@@ -5688,12 +5688,14 @@ static void rna_def_scene_eevee(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "gi_show_irradiance", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", SCE_EEVEE_SHOW_IRRADIANCE);
|
||||
RNA_def_property_boolean_default(prop, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_HIDE_ON, 1);
|
||||
RNA_def_property_ui_text(prop, "Show Irradiance Cache", "Display irradiance samples in the viewport");
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
|
||||
prop = RNA_def_property(srna, "gi_show_cubemaps", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", SCE_EEVEE_SHOW_CUBEMAPS);
|
||||
RNA_def_property_boolean_default(prop, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_HIDE_ON, 1);
|
||||
RNA_def_property_ui_text(prop, "Show Cubemap Cache", "Display captured cubemaps in the viewport");
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user