[Bf-blender-cvs] [8410aa26848] blender-v2.82-release: Fix T67654: missing ui refresh when changing active particle system
Philipp Oeser
noreply at git.blender.org
Wed Jan 29 10:58:16 CET 2020
Commit: 8410aa268480791746183e1fc7a11c9a14881bb3
Author: Philipp Oeser
Date: Tue Jan 28 15:19:43 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB8410aa268480791746183e1fc7a11c9a14881bb3
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
===================================================================
M source/blender/editors/space_buttons/space_buttons.c
===================================================================
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:
More information about the Bf-blender-cvs
mailing list