diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-08-28 11:07:02 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-08-28 11:07:02 +0400 |
commit | 0d530c3ddbff61ff0b566bc59b0f433961b38937 (patch) | |
tree | a3dfeb3b93b3e150cae0f5fc28d94509a193b5df /source/blender/editors/util | |
parent | 5c23537daa5c669b672528b0ed2bcaef2038f766 (diff) |
Fix #23363: Layer buttons do not update when last object deleted
This happend because of incorrect order of calculating used layer mask and drawing
header. Added layer content changed notifier to recalc used layers when needed.
This also fixes header redrawing in "Move to layer" operator and when user
changes Object.layers in properties view
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/undo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index 283e2b49f0d..e5128ea784a 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -163,6 +163,8 @@ static int ed_undo_step(bContext *C, int step, const char *undoname) BKE_undo_name(C, undoname); else BKE_undo_step(C, step); + + WM_event_add_notifier(C, NC_SCENE|ND_LAYER_CONTENT, CTX_data_scene(C)); } } |