diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-12-08 16:55:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-12-08 17:14:10 +0300 |
commit | 61776befc3f88c373e47ccbdf8c75e2ca0f4e987 (patch) | |
tree | 0214b7c5146300d41b7bcbe99f87c92599608e7f /source/blender/editors/mesh | |
parent | 8f1997975dc60bc1c18992458603ecd58dfded6d (diff) |
Cleanup: move public doc-strings into headers for 'editors'
Ref T92709
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editface.c | 9 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_extrude.c | 1 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 3 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 41 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 1 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_undo.c | 1 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_utils.c | 53 | ||||
-rw-r--r-- | source/blender/editors/mesh/mesh_data.c | 11 | ||||
-rw-r--r-- | source/blender/editors/mesh/mesh_intern.h | 55 | ||||
-rw-r--r-- | source/blender/editors/mesh/mesh_ops.c | 1 | ||||
-rw-r--r-- | source/blender/editors/mesh/meshtools.c | 22 |
11 files changed, 57 insertions, 141 deletions
diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c index 6cdc622183f..06547c94992 100644 --- a/source/blender/editors/mesh/editface.c +++ b/source/blender/editors/mesh/editface.c @@ -50,8 +50,6 @@ /* own include */ -/* copy the face flags, most importantly selection from the mesh to the final derived mesh, - * use in object mode when selecting faces (while painting) */ void paintface_flush_flags(struct bContext *C, Object *ob, short flag) { Mesh *me = BKE_mesh_from_object(ob); @@ -437,9 +435,6 @@ bool paintface_mouse_select( return true; } -/* (similar to void paintface_flush_flags(Object *ob)) - * copy the vertex flags, most importantly selection from the mesh to the final derived mesh, - * use in object mode when selecting vertices (while painting) */ void paintvert_flush_flags(Object *ob) { Mesh *me = BKE_mesh_from_object(ob); @@ -492,10 +487,6 @@ void paintvert_tag_select_update(struct bContext *C, struct Object *ob) WM_event_add_notifier(C, NC_GEOM | ND_SELECT, ob->data); } -/** - * \note if the caller passes false to flush_flags, - * then they will need to run #paintvert_flush_flags(ob) themselves. - */ bool paintvert_deselect_all_visible(Object *ob, int action, bool flush_flags) { Mesh *me; diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c index 912399c25b3..913be7d69bb 100644 --- a/source/blender/editors/mesh/editmesh_extrude.c +++ b/source/blender/editors/mesh/editmesh_extrude.c @@ -144,7 +144,6 @@ static bool edbm_extrude_discrete_faces(BMEditMesh *em, wmOperator *op, const ch return true; } -/* extrudes individual edges */ bool edbm_extrude_edges_indiv(BMEditMesh *em, wmOperator *op, const char hflag, diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index 0a22d87c0bc..3772a37ac44 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -4866,9 +4866,6 @@ static bool edbm_mesh_knife_point_isect(LinkNode *polys, const float cent_ss[2]) return false; } -/** - * \param use_tag: When set, tag all faces inside the polylines. - */ void EDBM_mesh_knife(bContext *C, ViewContext *vc, LinkNode *polys, bool use_tag, bool cut_through) { KnifeTool_OpData *kcd; diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index e0768bcff24..7e05209f79e 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -267,17 +267,6 @@ static void findnearestvert__doClosest(void *userData, } } -/** - * Nearest vertex under the cursor. - * - * \param dist_px_manhattan_p: (in/out), minimal distance to the nearest and at the end, - * actual distance. - * \param use_select_bias: - * - When true, selected vertices are given a 5 pixel bias - * to make them further than unselect verts. - * - When false, unselected vertices are given the bias. - * \param use_cycle: Cycle over elements within #FIND_NEAR_CYCLE_THRESHOLD_MIN in order of index. - */ BMVert *EDBM_vert_find_nearest_ex(ViewContext *vc, float *dist_px_manhattan_p, const bool use_select_bias, @@ -713,13 +702,6 @@ static void findnearestface__doClosest(void *userData, } } -/** - * \param use_zbuf_single_px: Special case, when using the back-buffer selection, - * only use the pixel at `vc->mval` instead of using `dist_px_manhattan_p` to search over a larger - * region. This is needed because historically selection worked this way for a long time, however - * it's reasonable that some callers might want to expand the region too. So add an argument to do - * this, - */ BMFace *EDBM_face_find_nearest_ex(ViewContext *vc, float *dist_px_manhattan_p, float *r_dist_center, @@ -2217,8 +2199,6 @@ static void edbm_strip_selections(BMEditMesh *em) } } -/* when switching select mode, makes sure selection is consistent for editing */ -/* also for paranoia checks to make sure edge or face mode works */ void EDBM_selectmode_set(BMEditMesh *em) { BMVert *eve; @@ -2273,20 +2253,6 @@ void EDBM_selectmode_set(BMEditMesh *em) } } -/** - * Expand & Contract the Selection - * (used when changing modes and Ctrl key held) - * - * Flush the selection up: - * - vert -> edge - * - vert -> face - * - edge -> face - * - * Flush the selection down: - * - face -> edge - * - face -> vert - * - edge -> vert - */ void EDBM_selectmode_convert(BMEditMesh *em, const short selectmode_old, const short selectmode_new) @@ -2393,7 +2359,6 @@ void EDBM_selectmode_convert(BMEditMesh *em, } } -/* user facing function, does notification */ bool EDBM_selectmode_toggle_multi(bContext *C, const short selectmode_new, const int action, @@ -2569,12 +2534,6 @@ bool EDBM_selectmode_set_multi(bContext *C, const short selectmode) return changed; } -/** - * Use to disable a selectmode if its enabled, Using another mode as a fallback - * if the disabled mode is the only mode set. - * - * \return true if the mode is changed. - */ bool EDBM_selectmode_disable(Scene *scene, BMEditMesh *em, const short selectmode_disable, diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 6cd7d912820..633e8183eb3 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -8226,7 +8226,6 @@ enum { EDBM_CLNOR_MODAL_POINTTO_SET_USE_SELECTED = 114, }; -/* Called in transform_ops.c, on each regeneration of key-maps. */ wmKeyMap *point_normals_modal_keymap(wmKeyConfig *keyconf) { static const EnumPropertyItem modal_items[] = { diff --git a/source/blender/editors/mesh/editmesh_undo.c b/source/blender/editors/mesh/editmesh_undo.c index f52cd94b8dc..f22d4bbe580 100644 --- a/source/blender/editors/mesh/editmesh_undo.c +++ b/source/blender/editors/mesh/editmesh_undo.c @@ -915,7 +915,6 @@ static void mesh_undosys_foreach_ID_ref(UndoStep *us_p, } } -/* Export for ED_undo_sys. */ void ED_mesh_undosys_type(UndoType *ut) { ut->name = "Edit Mesh"; diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c index 3ba8f601937..013d5e5a661 100644 --- a/source/blender/editors/mesh/editmesh_utils.c +++ b/source/blender/editors/mesh/editmesh_utils.c @@ -68,9 +68,6 @@ * just as the undo stack would. * So leaving this as an interface for further work */ -/** - * Save a copy of the #BMesh for restoring later. - */ BMBackup EDBM_redo_state_store(BMEditMesh *em) { BMBackup backup; @@ -93,9 +90,6 @@ void EDBM_redo_state_restore(BMBackup *backup, BMEditMesh *em, bool recalc_loopt } } -/** - * Delete the backup, flushing it to an edit-mesh. - */ void EDBM_redo_state_restore_and_free(BMBackup *backup, BMEditMesh *em, bool recalc_looptri) { BM_mesh_data_free(em->bm); @@ -139,11 +133,6 @@ bool EDBM_op_init(BMEditMesh *em, BMOperator *bmop, wmOperator *op, const char * return true; } -/** - * The return value: - * - False on error (the mesh must not be changed). - * - True on success, executes and finishes a #BMesh operator. - */ bool EDBM_op_finish(BMEditMesh *em, BMOperator *bmop, wmOperator *op, const bool do_report) { const char *errmsg; @@ -320,11 +309,6 @@ void EDBM_mesh_make(Object *ob, const int select_mode, const bool add_key_index) EDBM_selectmode_flush(me->edit_mesh); } -/** - * \warning This can invalidate the #Mesh runtime cache of other objects (for linked duplicates). - * Most callers should run #DEG_id_tag_update on `ob->data`, see: T46738, T46913. - * This ensures #BKE_object_free_derived_caches runs on all objects that use this mesh. - */ void EDBM_mesh_load_ex(Main *bmain, Object *ob, bool free_data) { Mesh *me = ob->data; @@ -363,9 +347,6 @@ void EDBM_mesh_load(Main *bmain, Object *ob) EDBM_mesh_load_ex(bmain, ob, true); } -/** - * Should only be called on the active edit-mesh, otherwise call #BKE_editmesh_free_data. - */ void EDBM_mesh_free_data(BMEditMesh *em) { /* These tables aren't used yet, so it's not strictly necessary @@ -486,9 +467,6 @@ void EDBM_flag_enable_all(BMEditMesh *em, const char hflag) /** \name UV Vertex Map API * \{ */ -/** - * Return a new #UvVertMap from the edit-mesh. - */ UvVertMap *BM_uv_vert_map_create(BMesh *bm, const bool use_select, const bool use_winding) { BMVert *ev; @@ -632,7 +610,6 @@ UvMapVert *BM_uv_vert_map_at_index(UvVertMap *vmap, uint v) return vmap->vert[v]; } -/* A specialized vert map used by stitch operator */ UvElementMap *BM_uv_element_map_create(BMesh *bm, const Scene *scene, const bool face_selected, @@ -953,10 +930,6 @@ UvElement *BM_uv_element_get(UvElementMap *map, BMFace *efa, BMLoop *l) /** \name Data Layer Checks * \{ */ -/** - * last_sel, use em->act_face otherwise get the last selected face in the editselections - * at the moment, last_sel is mainly useful for making sure the space image doesn't flicker. - */ BMFace *EDBM_uv_active_face_get(BMEditMesh *em, const bool sloppy, const bool selected) { BMFace *efa = NULL; @@ -974,7 +947,6 @@ BMFace *EDBM_uv_active_face_get(BMEditMesh *em, const bool sloppy, const bool se return NULL; } -/* Can we edit UV's for this mesh? */ bool EDBM_uv_check(BMEditMesh *em) { /* some of these checks could be a touch overkill */ @@ -1015,20 +987,10 @@ static BMVert *cache_mirr_intptr_as_bmvert(const intptr_t *index_lookup, int ind * \endcode */ -/* BM_SEARCH_MAXDIST is too big, copied from 2.6x MOC_THRESH, should become a - * preference */ +/* BM_SEARCH_MAXDIST is too big, copied from 2.6x MOC_THRESH, should become a preference. */ #define BM_SEARCH_MAXDIST_MIRR 0.00002f #define BM_CD_LAYER_ID "__mirror_index" -/** - * \param em: Editmesh. - * \param use_self: Allow a vertex to point to its self (middle verts). - * \param use_select: Restrict to selected verts. - * \param respecthide: Skip hidden vertices. - * \param use_topology: Use topology mirror. - * \param maxdist: Distance for close point test. - * \param r_index: Optional array to write into, as an alternative to a customdata layer - * (length of total verts). - */ + void EDBM_verts_mirror_cache_begin_ex(BMEditMesh *em, const int axis, const bool use_self, @@ -1255,7 +1217,6 @@ void EDBM_verts_mirror_apply(BMEditMesh *em, const int sel_from, const int sel_t /** \name Hide/Reveal API * \{ */ -/* swap is 0 or 1, if 1 it hides not selected */ bool EDBM_mesh_hide(BMEditMesh *em, bool swap) { BMIter iter; @@ -1410,9 +1371,6 @@ void EDBM_stats_update(BMEditMesh *em) } } -/** - * So many tools call these that we better make it a generic function. - */ void EDBM_update(Mesh *mesh, const struct EDBMUpdate_Params *params) { BMEditMesh *em = mesh->edit_mesh; @@ -1459,7 +1417,6 @@ void EDBM_update(Mesh *mesh, const struct EDBMUpdate_Params *params) #endif } -/* Bad level call from Python API. */ void EDBM_update_extern(struct Mesh *me, const bool do_tessellation, const bool is_destructive) { EDBM_update(me, @@ -1476,7 +1433,6 @@ void EDBM_update_extern(struct Mesh *me, const bool do_tessellation, const bool /** \name Operator Helpers * \{ */ -/* poll call for mesh operators requiring a view3d context */ bool EDBM_view3d_poll(bContext *C) { if (ED_operator_editmesh(C) && ED_operator_view3d_active(C)) { @@ -1509,11 +1465,6 @@ BMElem *EDBM_elem_from_selectmode(BMEditMesh *em, BMVert *eve, BMEdge *eed, BMFa return ele; } -/** - * Used when we want to store a single index for any vert/edge/face. - * - * Intended for use with operators. - */ int EDBM_elem_to_index_any(BMEditMesh *em, BMElem *ele) { BMesh *bm = em->bm; diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c index 7ce408b571f..d7d1dc7dcae 100644 --- a/source/blender/editors/mesh/mesh_data.c +++ b/source/blender/editors/mesh/mesh_data.c @@ -208,7 +208,6 @@ static void mesh_uv_reset_mface(MPoly *mp, MLoopUV *mloopuv) mesh_uv_reset_array(fuv, mp->totloop); } -/* without bContext, called in uvedit */ void ED_mesh_uv_loop_reset_ex(struct Mesh *me, const int layernum) { BMEditMesh *em = me->edit_mesh; @@ -253,10 +252,11 @@ void ED_mesh_uv_loop_reset(struct bContext *C, struct Mesh *me) WM_event_add_notifier(C, NC_GEOM | ND_DATA, me); } -/* NOTE: keep in sync with #ED_mesh_color_add. */ int ED_mesh_uv_texture_add( Mesh *me, const char *name, const bool active_set, const bool do_init, ReportList *reports) { + /* NOTE: keep in sync with #ED_mesh_color_add. */ + BMEditMesh *em; int layernum_dst; @@ -381,10 +381,11 @@ bool ED_mesh_uv_texture_remove_named(Mesh *me, const char *name) return false; } -/* NOTE: keep in sync with #ED_mesh_uv_texture_add. */ int ED_mesh_color_add( Mesh *me, const char *name, const bool active_set, const bool do_init, ReportList *reports) { + /* NOTE: keep in sync with #ED_mesh_uv_texture_add. */ + BMEditMesh *em; int layernum; @@ -516,10 +517,11 @@ static bool sculpt_vertex_color_remove_poll(bContext *C) return false; } -/* NOTE: keep in sync with #ED_mesh_uv_texture_add. */ int ED_mesh_sculpt_color_add( Mesh *me, const char *name, const bool active_set, const bool do_init, ReportList *reports) { + /* NOTE: keep in sync with #ED_mesh_uv_texture_add. */ + BMEditMesh *em; int layernum; @@ -905,6 +907,7 @@ static int mesh_customdata_mask_clear_exec(bContext *C, wmOperator *UNUSED(op)) void MESH_OT_customdata_mask_clear(wmOperatorType *ot) { + /* NOTE: no create_mask yet */ /* identifiers */ ot->name = "Clear Sculpt Mask Data"; diff --git a/source/blender/editors/mesh/mesh_intern.h b/source/blender/editors/mesh/mesh_intern.h index abff3c70e67..bba142133a6 100644 --- a/source/blender/editors/mesh/mesh_intern.h +++ b/source/blender/editors/mesh/mesh_intern.h @@ -43,7 +43,7 @@ struct wmOperatorType; * BMEdit module is for code shared with blenkernel that concerns * the BMEditMesh structure. */ -/* Calls a bmesh op, reporting errors to the user, etc */ +/** Calls a bmesh op, reporting errors to the user, etc. */ bool EDBM_op_callf(struct BMEditMesh *em, struct wmOperator *op, const char *fmt, ...); bool EDBM_op_call_and_selectf(struct BMEditMesh *em, struct wmOperator *op, @@ -51,17 +51,26 @@ bool EDBM_op_call_and_selectf(struct BMEditMesh *em, const bool select_replace, const char *fmt, ...); -/* Same as above, but doesn't report errors. */ +/** + * Same as above, but doesn't report errors. + */ bool EDBM_op_call_silentf(struct BMEditMesh *em, const char *fmt, ...); -/* these next two functions are the split version of EDBM_op_callf, so you can - * do stuff with a bmesh operator, after initializing it but before executing - * it. +/** + * These next two functions are the split version of EDBM_op_callf, so you can + * do stuff with a bmesh operator, after initializing it but before executing it. * * execute the operator with BM_Exec_Op */ bool EDBM_op_init( struct BMEditMesh *em, struct BMOperator *bmop, struct wmOperator *op, const char *fmt, ...); -/* Cleans up after a bmesh operator */ + +/** + * Cleans up after a bmesh operator. + * + * The return value: + * - False on error (the mesh must not be changed). + * - True on success, executes and finishes a #BMesh operator. + */ bool EDBM_op_finish(struct BMEditMesh *em, struct BMOperator *bmop, struct wmOperator *op, @@ -69,6 +78,9 @@ bool EDBM_op_finish(struct BMEditMesh *em, void EDBM_stats_update(struct BMEditMesh *em); +/** + * Poll call for mesh operators requiring a view3d context. + */ bool EDBM_view3d_poll(struct bContext *C); struct BMElem *EDBM_elem_from_selectmode(struct BMEditMesh *em, @@ -76,6 +88,11 @@ struct BMElem *EDBM_elem_from_selectmode(struct BMEditMesh *em, struct BMEdge *eed, struct BMFace *efa); +/** + * Used when we want to store a single index for any vert/edge/face. + * + * Intended for use with operators. + */ int EDBM_elem_to_index_any(struct BMEditMesh *em, struct BMElem *ele); struct BMElem *EDBM_elem_from_index_any(struct BMEditMesh *em, uint index); @@ -88,12 +105,16 @@ struct BMElem *EDBM_elem_from_index_any_multi(struct ViewLayer *view_layer, uint elem_index, struct Object **r_obedit); +/** + * Extrudes individual edges. + */ bool edbm_extrude_edges_indiv(struct BMEditMesh *em, struct wmOperator *op, const char hflag, const bool use_normal_flip); /* *** editmesh_add.c *** */ + void MESH_OT_primitive_plane_add(struct wmOperatorType *ot); void MESH_OT_primitive_cube_add(struct wmOperatorType *ot); void MESH_OT_primitive_circle_add(struct wmOperatorType *ot); @@ -105,16 +126,20 @@ void MESH_OT_primitive_uv_sphere_add(struct wmOperatorType *ot); void MESH_OT_primitive_ico_sphere_add(struct wmOperatorType *ot); /* *** editmesh_add_gizmo.c *** */ + void MESH_OT_primitive_cube_add_gizmo(struct wmOperatorType *ot); /* *** editmesh_bevel.c *** */ + void MESH_OT_bevel(struct wmOperatorType *ot); struct wmKeyMap *bevel_modal_keymap(struct wmKeyConfig *keyconf); /* *** editmesh_bisect.c *** */ + void MESH_OT_bisect(struct wmOperatorType *ot); /* *** editmesh_extrude.c *** */ + void MESH_OT_extrude_repeat(struct wmOperatorType *ot); void MESH_OT_extrude_region(struct wmOperatorType *ot); void MESH_OT_extrude_context(struct wmOperatorType *ot); @@ -124,15 +149,20 @@ void MESH_OT_extrude_faces_indiv(struct wmOperatorType *ot); void MESH_OT_dupli_extrude_cursor(struct wmOperatorType *ot); /* *** editmesh_extrude_screw.c *** */ + void MESH_OT_screw(struct wmOperatorType *ot); /* *** editmesh_extrude_spin.c *** */ + void MESH_OT_spin(struct wmOperatorType *ot); + /* *** editmesh_extrude_spin_gizmo.c *** */ + void MESH_GGT_spin(struct wmGizmoGroupType *gzgt); void MESH_GGT_spin_redo(struct wmGizmoGroupType *gzgt); /* *** editmesh_polybuild.c *** */ + void MESH_OT_polybuild_face_at_cursor(struct wmOperatorType *ot); void MESH_OT_polybuild_split_at_cursor(struct wmOperatorType *ot); void MESH_OT_polybuild_dissolve_at_cursor(struct wmOperatorType *ot); @@ -140,16 +170,22 @@ void MESH_OT_polybuild_transform_at_cursor(struct wmOperatorType *ot); void MESH_OT_polybuild_delete_at_cursor(struct wmOperatorType *ot); /* *** editmesh_inset.c *** */ + void MESH_OT_inset(struct wmOperatorType *ot); /* *** editmesh_intersect.c *** */ + void MESH_OT_intersect(struct wmOperatorType *ot); void MESH_OT_intersect_boolean(struct wmOperatorType *ot); void MESH_OT_face_split_by_edges(struct wmOperatorType *ot); /* *** editmesh_knife.c *** */ + void MESH_OT_knife_tool(struct wmOperatorType *ot); void MESH_OT_knife_project(struct wmOperatorType *ot); +/** + * \param use_tag: When set, tag all faces inside the polylines. + */ void EDBM_mesh_knife(struct bContext *C, struct ViewContext *vc, struct LinkNode *polys, @@ -159,13 +195,16 @@ void EDBM_mesh_knife(struct bContext *C, struct wmKeyMap *knifetool_modal_keymap(struct wmKeyConfig *keyconf); /* *** editmesh_loopcut.c *** */ + void MESH_OT_loopcut(struct wmOperatorType *ot); /* *** editmesh_rip.c *** */ + void MESH_OT_rip(struct wmOperatorType *ot); void MESH_OT_rip_edge(struct wmOperatorType *ot); /* *** editmesh_select.c *** */ + void MESH_OT_select_similar(struct wmOperatorType *ot); void MESH_OT_select_similar_region(struct wmOperatorType *ot); void MESH_OT_select_mode(struct wmOperatorType *ot); @@ -265,10 +304,12 @@ void MESH_OT_smooth_normals(struct wmOperatorType *ot); void MESH_OT_mod_weighted_strength(struct wmOperatorType *ot); /* *** editmesh_mask_extract.c *** */ + void MESH_OT_paint_mask_extract(struct wmOperatorType *ot); void MESH_OT_face_set_extract(struct wmOperatorType *ot); void MESH_OT_paint_mask_slice(struct wmOperatorType *ot); +/** Called in transform_ops.c, on each regeneration of key-maps. */ struct wmKeyMap *point_normals_modal_keymap(wmKeyConfig *keyconf); #if defined(WITH_FREESTYLE) @@ -277,13 +318,13 @@ void MESH_OT_mark_freestyle_face(struct wmOperatorType *ot); #endif /* *** mesh_data.c *** */ + void MESH_OT_uv_texture_add(struct wmOperatorType *ot); void MESH_OT_uv_texture_remove(struct wmOperatorType *ot); void MESH_OT_vertex_color_add(struct wmOperatorType *ot); void MESH_OT_vertex_color_remove(struct wmOperatorType *ot); void MESH_OT_sculpt_vertex_color_add(struct wmOperatorType *ot); void MESH_OT_sculpt_vertex_color_remove(struct wmOperatorType *ot); -/* no create_mask yet */ void MESH_OT_customdata_mask_clear(struct wmOperatorType *ot); void MESH_OT_customdata_skin_add(struct wmOperatorType *ot); void MESH_OT_customdata_skin_clear(struct wmOperatorType *ot); diff --git a/source/blender/editors/mesh/mesh_ops.c b/source/blender/editors/mesh/mesh_ops.c index 94823b92c44..d616dd3bb63 100644 --- a/source/blender/editors/mesh/mesh_ops.c +++ b/source/blender/editors/mesh/mesh_ops.c @@ -372,7 +372,6 @@ void ED_operatormacros_mesh(void) RNA_boolean_set(otmacro->ptr, "mirror", false); } -/* note mesh keymap also for other space? */ void ED_keymap_mesh(wmKeyConfig *keyconf) { wmKeyMap *keymap = WM_keymap_ensure(keyconf, "Mesh", 0, 0); diff --git a/source/blender/editors/mesh/meshtools.c b/source/blender/editors/mesh/meshtools.c index 1b720f2c14d..7295d33acb6 100644 --- a/source/blender/editors/mesh/meshtools.c +++ b/source/blender/editors/mesh/meshtools.c @@ -876,12 +876,6 @@ BLI_INLINE void mesh_mirror_topo_table_get_meshes(Object *ob, *r_em_mirror = em_mirror; } -/** - * Mode is 's' start, or 'e' end, or 'u' use - * if end, ob can be NULL. - * \note This is supposed return -1 on error, - * which callers are currently checking for, but is not used so far. - */ void ED_mesh_mirror_topo_table_begin(Object *ob, Mesh *me_eval) { Mesh *me_mirror; @@ -1012,11 +1006,6 @@ BMVert *editbmesh_get_x_mirror_vert(Object *ob, return editbmesh_get_x_mirror_vert_spatial(ob, em, co); } -/** - * Wrapper for object-mode/edit-mode. - * - * call #BM_mesh_elem_table_ensure first for editmesh. - */ int ED_mesh_mirror_get_vert(Object *ob, int index) { Mesh *me = ob->data; @@ -1146,7 +1135,6 @@ static bool mirror_facecmp(const void *a, const void *b) return (mirror_facerotation((MFace *)a, (MFace *)b) == -1); } -/* This is a Mesh-based copy of mesh_get_x_mirror_faces() */ int *mesh_get_x_mirror_faces(Object *ob, BMEditMesh *em, Mesh *me_eval) { Mesh *me = ob->data; @@ -1212,12 +1200,6 @@ int *mesh_get_x_mirror_faces(Object *ob, BMEditMesh *em, Mesh *me_eval) /* selection, vertex and face */ /* returns 0 if not found, otherwise 1 */ -/** - * Face selection in object mode, - * currently only weight-paint and vertex-paint use this. - * - * \return boolean true == Found - */ bool ED_mesh_pick_face(bContext *C, Object *ob, const int mval[2], uint dist_px, uint *r_index) { ViewContext vc; @@ -1280,10 +1262,6 @@ static void ed_mesh_pick_face_vert__mpoly_find( } } } -/** - * Use when the back buffer stores face index values. but we want a vert. - * This gets the face then finds the closest vertex to mval. - */ bool ED_mesh_pick_face_vert( bContext *C, Object *ob, const int mval[2], uint dist_px, uint *r_index) { |