[Bf-blender-cvs] [81b971b154d] greasepencil-object: Fix: Refresh issues in Topbar with Grease Pencil and Annotations

Joshua Leung noreply at git.blender.org
Fri Jul 27 06:44:47 CEST 2018


Commit: 81b971b154dc0b1fc00c13e72a08771aaffbd998
Author: Joshua Leung
Date:   Fri Jul 27 16:44:38 2018 +1200
Branches: greasepencil-object
https://developer.blender.org/rB81b971b154dc0b1fc00c13e72a08771aaffbd998

Fix: Refresh issues in Topbar with Grease Pencil and Annotations

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

M	source/blender/editors/space_topbar/space_topbar.c

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

diff --git a/source/blender/editors/space_topbar/space_topbar.c b/source/blender/editors/space_topbar/space_topbar.c
index e45159124e8..6113922c02e 100644
--- a/source/blender/editors/space_topbar/space_topbar.c
+++ b/source/blender/editors/space_topbar/space_topbar.c
@@ -168,6 +168,10 @@ static void topbar_main_region_listener(wmWindow *UNUSED(win), ScrArea *UNUSED(s
 			if (wmn->data == ND_SPACE_VIEW3D)
 				ED_region_tag_redraw(ar);
 			break;
+		case NC_GPENCIL:
+			if (wmn->data == ND_DATA)
+				ED_region_tag_redraw(ar);
+			break;
 	}
 }



More information about the Bf-blender-cvs mailing list