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 Philipp Oeser
parent 40cf7180d3
commit 9026131c80
2 changed files with 6 additions and 0 deletions

View file

@ -725,6 +725,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);

View file

@ -1587,6 +1587,11 @@ static void view3d_header_region_listener(const wmRegionListenerParams *params)
case NC_BRUSH:
ED_region_tag_redraw(region);
break;
case NC_GEOM:
if (wmn->data == ND_DATA) {
ED_region_tag_redraw(region);
}
break;
}
/* From top-bar, which ones are needed? split per header? */