Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-01-28 17:19:43 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-01-29 12:55:25 +0300
commit8410aa268480791746183e1fc7a11c9a14881bb3 (patch)
tree0be482a27687fe321c8381031b19ab2955bedb50 /source/blender/editors/space_buttons/space_buttons.c
parentdee9c3cc25419146bd38016f0e2ec98eea282962 (diff)
Fix T67654: missing ui refresh when changing active particle system
Since changing the active particle system uses NC_OBJECT | ND_DRAW for 'RNA_def_property_update()' we need to redraw/refresh BCONTEXT_PARTICLE in 'buttons_area_listener()' as well. Maniphest Tasks: T67654 Differential Revision: https://developer.blender.org/D6702
Diffstat (limited to 'source/blender/editors/space_buttons/space_buttons.c')
-rw-r--r--source/blender/editors/space_buttons/space_buttons.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c
index b26c3113fbd..17d4790bbc4 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -428,6 +428,8 @@ static void buttons_area_listener(wmWindow *UNUSED(win),
buttons_area_redraw(sa, BCONTEXT_OBJECT);
buttons_area_redraw(sa, BCONTEXT_DATA);
buttons_area_redraw(sa, BCONTEXT_PHYSICS);
+ /* Needed to refresh context path when changing active particle system index. */
+ buttons_area_redraw(sa, BCONTEXT_PARTICLE);
break;
case ND_SHADING:
case ND_SHADING_DRAW: