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:
authorSybren A. Stüvel <sybren@blender.org>2020-02-27 14:08:19 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-02-27 14:08:24 +0300
commite420caab19cefe4c44a70394b96490d0e410de7b (patch)
tree169d47edf63cacea996f1e4635b9f3efe1e21894
parentd5bcc375ba4b7ed6446212c355a26de09d91c36c (diff)
Fix T71743: NLA editor doesn't update properly when hiding/viewing objects
The NLA area & region listeners were ignoring the notifications that happen when hiding/showing objects & collections.
-rw-r--r--source/blender/editors/space_nla/space_nla.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c
index 5cd2a86adf8..e5f6b25ee25 100644
--- a/source/blender/editors/space_nla/space_nla.c
+++ b/source/blender/editors/space_nla/space_nla.c
@@ -340,6 +340,8 @@ static void nla_region_listener(wmWindow *UNUSED(win),
case ND_OB_ACTIVE:
case ND_FRAME:
case ND_MARKERS:
+ case ND_LAYER_CONTENT:
+ case ND_OB_SELECT:
ED_region_tag_redraw(ar);
break;
}
@@ -349,6 +351,7 @@ static void nla_region_listener(wmWindow *UNUSED(win),
case ND_BONE_ACTIVE:
case ND_BONE_SELECT:
case ND_KEYS:
+ case ND_DRAW:
ED_region_tag_redraw(ar);
break;
}
@@ -379,6 +382,8 @@ static void nla_main_region_listener(wmWindow *UNUSED(win),
case ND_FRAME:
case ND_FRAME_RANGE:
case ND_MARKERS:
+ case ND_LAYER_CONTENT:
+ case ND_OB_SELECT:
ED_region_tag_redraw(ar);
break;
}
@@ -474,6 +479,8 @@ static void nla_channel_region_listener(wmWindow *UNUSED(win),
case NC_SCENE:
switch (wmn->data) {
case ND_OB_ACTIVE:
+ case ND_LAYER_CONTENT:
+ case ND_OB_SELECT:
ED_region_tag_redraw(ar);
break;
}
@@ -483,6 +490,7 @@ static void nla_channel_region_listener(wmWindow *UNUSED(win),
case ND_BONE_ACTIVE:
case ND_BONE_SELECT:
case ND_KEYS:
+ case ND_DRAW:
ED_region_tag_redraw(ar);
break;
}