[Bf-blender-cvs] [99190f93453] blender2.8: Correct extrude poll function

Campbell Barton noreply at git.blender.org
Sun May 6 16:14:15 CEST 2018


Commit: 99190f9345394da9e477e742615bcb80a422dd56
Author: Campbell Barton
Date:   Sun May 6 16:13:43 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB99190f9345394da9e477e742615bcb80a422dd56

Correct extrude poll function

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

M	source/blender/editors/mesh/editmesh_extrude.c

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

diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c
index 3d19ee8c241..51ee8223f0c 100644
--- a/source/blender/editors/mesh/editmesh_extrude.c
+++ b/source/blender/editors/mesh/editmesh_extrude.c
@@ -364,7 +364,9 @@ typedef struct ManipulatorExtrudeGroup {
 static bool manipulator_mesh_extrude_poll(const bContext *C, wmManipulatorGroupType *wgt)
 {
 	WorkSpace *workspace = CTX_wm_workspace(C);
-	if (!STREQ(workspace->tool.manipulator_group, "MESH_WGT_extrude")) {
+	if (!STREQ(workspace->tool.manipulator_group, "MESH_WGT_extrude") ||
+	    !ED_operator_editmesh_view3d((bContext *)C))
+	{
 		WM_manipulator_group_type_unlink_delayed_ptr(wgt);
 		return false;
 	}



More information about the Bf-blender-cvs mailing list