[Bf-blender-cvs] [2335390a3c9] greasepencil-object: Undo previous context change

Antonio Vazquez noreply at git.blender.org
Thu May 31 11:50:06 CEST 2018


Commit: 2335390a3c93b7049f556d0b6f9bb062912b73a4
Author: Antonio Vazquez
Date:   Thu May 31 11:47:37 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB2335390a3c93b7049f556d0b6f9bb062912b73a4

Undo previous context change

These operators cannot be used in Top Bar, so this context is not required.

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

M	source/blender/editors/gpencil/gpencil_primitive.c

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

diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index 996098bf930..c50dd0d0348 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -97,9 +97,7 @@ static int gpencil_primitive_add_poll(bContext *C)
 {
 	/* only 3D view */
 	ScrArea *sa = CTX_wm_area(C);
-	if ((sa) && (sa->spacetype != SPACE_VIEW3D) && 
-				(sa->spacetype != SPACE_TOPBAR)) 
-	{
+	if (sa && sa->spacetype != SPACE_VIEW3D) {
 		return 0;
 	}



More information about the Bf-blender-cvs mailing list