Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-01 14:18:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-01 14:18:01 +0400
commit6d8e25dfdc44ecb068ab73fc52af31683483a663 (patch)
treeb44396db84e5984a4519b559356e0e942ad38a36 /source/blender/editors/mesh/editmesh_utils.c
parente8d0e77856872037635c1d2bcd9a466a715910c4 (diff)
code cleanup: split editmesh_tools.c, into inset, bevel (both modal operators) and moved extrude operators into their own file.
also move some selection operators from editmesh_tools.c into editmesh_select.c
Diffstat (limited to 'source/blender/editors/mesh/editmesh_utils.c')
-rw-r--r--source/blender/editors/mesh/editmesh_utils.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c
index cb15fdef880..9020e133b33 100644
--- a/source/blender/editors/mesh/editmesh_utils.c
+++ b/source/blender/editors/mesh/editmesh_utils.c
@@ -33,7 +33,6 @@
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
-#include "DNA_scene_types.h"
#include "BLI_math.h"
@@ -51,10 +50,10 @@
#include "WM_types.h"
#include "ED_mesh.h"
+#include "ED_screen.h"
#include "ED_util.h"
-
-#include "mesh_intern.h"
+#include "mesh_intern.h" /* own include */
/* mesh backup implementation. This would greatly benefit from some sort of binary diffing
* just as the undo stack would. So leaving this as an interface for further work */
@@ -1367,3 +1366,12 @@ void EDBM_update_generic(BMEditMesh *em, const bool do_tessface, const bool is_d
BLI_assert(EDBM_index_arrays_check(em) == true);
}
}
+
+/* poll call for mesh operators requiring a view3d context */
+int EDBM_view3d_poll(bContext *C)
+{
+ if (ED_operator_editmesh(C) && ED_operator_view3d_active(C))
+ return 1;
+
+ return 0;
+}