From 7334c481c03d0b89810925495cec3620760fc7c3 Mon Sep 17 00:00:00 2001 From: Evan Wilson Date: Tue, 6 Apr 2021 09:56:54 +0200 Subject: Fix T86175: Missing viewport update when toggling HDRI preview Caused by rB0f95f51361d7. Similar to T85515, T84717, T85543 and their related fixes. In this case, add missing shading notifier as in rB9274bd457a25. Reviewed By: brecht, lichtwerk Maniphest Tasks: T86175 Differential Revision: https://developer.blender.org/D10604 --- source/blender/makesrna/intern/rna_space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index f9b1816e1ba..df10ef41057 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -4080,7 +4080,7 @@ static void rna_def_space_view3d_overlay(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "overlay.flag", V3D_OVERLAY_LOOK_DEV); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); RNA_def_property_ui_text(prop, "HDRI Preview", "Show HDRI preview spheres"); - RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); + RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); prop = RNA_def_property(srna, "show_wireframes", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "overlay.flag", V3D_OVERLAY_WIREFRAMES); -- cgit v1.2.3