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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-01-31 19:15:24 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-01-31 19:15:24 +0300
commite7dfe15702bf60700fbedea80f84fbace16970d2 (patch)
tree2caba9c99aa7bce9f515b27e99b19d1bd2d7a4df
parentd2f3378249902cdc093c54c41afb1b48ae8357c3 (diff)
Fix T61061: Scopes in image editor are not updating
Scopes were moved to properties area, so need to adjust the optimization part of tagging. Ideally, tagging will always happen (and happen for free) and then drawing code will update scopes when they are actually displayed. But this is outside of the scope of this fix since requires some design changes.
-rw-r--r--source/blender/editors/space_image/space_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index fc1bf0fcbff..c47d9eb2964 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -98,7 +98,7 @@ static void image_scopes_tag_refresh(ScrArea *sa)
/* only while histogram is visible */
for (ar = sa->regionbase.first; ar; ar = ar->next) {
- if (ar->regiontype == RGN_TYPE_TOOLS && ar->flag & RGN_FLAG_HIDDEN)
+ if (ar->regiontype == RGN_TYPE_TOOL_PROPS && ar->flag & RGN_FLAG_HIDDEN)
return;
}