[Bf-blender-cvs] [e7dfe15702b] master: Fix T61061: Scopes in image editor are not updating

Sergey Sharybin noreply at git.blender.org
Thu Jan 31 17:18:15 CET 2019


Commit: e7dfe15702bf60700fbedea80f84fbace16970d2
Author: Sergey Sharybin
Date:   Thu Jan 31 17:15:24 2019 +0100
Branches: master
https://developer.blender.org/rBe7dfe15702bf60700fbedea80f84fbace16970d2

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.

===================================================================

M	source/blender/editors/space_image/space_image.c

===================================================================

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;
 	}



More information about the Bf-blender-cvs mailing list