[Bf-blender-cvs] [b8161bd9afb] greasepencil-object: Fix error introduced in previous commit

Antonio Vazquez noreply at git.blender.org
Tue Oct 10 11:20:01 CEST 2017


Commit: b8161bd9afb6c5c544c019425c354a1181238ccf
Author: Antonio Vazquez
Date:   Tue Oct 10 11:19:51 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBb8161bd9afb6c5c544c019425c354a1181238ccf

Fix error introduced in previous commit

The macro used was wrong

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index 0b2c8878eee..0ab3b26a3ff 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -96,7 +96,7 @@ static int gpencil_select_all_exec(bContext *C, wmOperator *op)
 	}
 	
 	/* if not edit/sculpt mode, the event is catched but not processed */
-	if (GPENCIL_ANY_EDIT_MODE(gpd) == 0) {
+	if (GPENCIL_NONE_EDIT_MODE(gpd)) {
 		return OPERATOR_CANCELLED;
 	}



More information about the Bf-blender-cvs mailing list