Fix #118137: Symmetry buttons on-click state change

Buttons for mesh symmetry on the toolbar, and other buttons of the same
functionality located in other areas of the window, weren't updated when
clicking on them.

Pull Request: https://projects.blender.org/blender/blender/pulls/118508
This commit is contained in:
Amine Bensalem
2024-03-19 18:49:40 +01:00
committed by Harley Acheson
parent b99c1abc3a
commit 1e478cf169
2 changed files with 2 additions and 1 deletions
@@ -726,6 +726,7 @@ static void buttons_area_listener(const wmSpaceTypeListenerParams *params)
buttons_area_redraw(area, BCONTEXT_PHYSICS);
/* Needed to refresh context path when changing active particle system index. */
buttons_area_redraw(area, BCONTEXT_PARTICLE);
buttons_area_redraw(area, BCONTEXT_TOOL);
break;
case ND_DRAW_ANIMVIZ:
buttons_area_redraw(area, BCONTEXT_OBJECT);
@@ -1600,7 +1600,7 @@ static void view3d_header_region_listener(const wmRegionListenerParams *params)
ED_region_tag_redraw(region);
break;
case NC_GEOM:
if (wmn->data == ND_VERTEX_GROUP) {
if (wmn->data == ND_VERTEX_GROUP || wmn->data == ND_DATA) {
ED_region_tag_redraw(region);
}
break;