diff options
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_mesh.h | 7 | ||||
-rw-r--r-- | source/blender/editors/include/ED_sculpt.h | 23 |
2 files changed, 27 insertions, 3 deletions
diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h index 22779fbba0b..c866b12ed22 100644 --- a/source/blender/editors/include/ED_mesh.h +++ b/source/blender/editors/include/ED_mesh.h @@ -58,6 +58,7 @@ struct CustomData; struct Material; struct Object; struct rcti; +struct CustomDataLayer; #define EM_FGON_DRAW 1 // face flag #define EM_FGON 2 // edge and face flag both @@ -220,6 +221,10 @@ void ED_mesh_faces_add(struct Mesh *mesh, struct ReportList *reports, int count) void ED_mesh_edges_add(struct Mesh *mesh, struct ReportList *reports, int count); void ED_mesh_vertices_add(struct Mesh *mesh, struct ReportList *reports, int count); +void ED_mesh_delete_customdata_layer(struct bContext *C, struct Object *ob, struct CustomDataLayer *layer); + +void ED_mesh_geometry_add(struct Mesh *mesh, struct ReportList *reports, int verts, int edges, int faces); + void ED_mesh_transform(struct Mesh *me, float *mat); void ED_mesh_calc_normals(struct Mesh *me); void ED_mesh_material_link(struct Mesh *me, struct Material *ma); @@ -230,6 +235,8 @@ int ED_mesh_uv_texture_remove(struct bContext *C, struct Object *ob, struct Mesh int ED_mesh_color_add(struct bContext *C, struct Scene *scene, struct Object *ob, struct Mesh *me, const char *name, int active_set); int ED_mesh_color_remove(struct bContext *C, struct Object *ob, struct Mesh *me); +int ED_mesh_layers_poll(struct bContext *C); + #ifdef __cplusplus } #endif diff --git a/source/blender/editors/include/ED_sculpt.h b/source/blender/editors/include/ED_sculpt.h index 506813ce626..67e65409e6c 100644 --- a/source/blender/editors/include/ED_sculpt.h +++ b/source/blender/editors/include/ED_sculpt.h @@ -30,16 +30,16 @@ struct ARegion; struct bContext; +struct MultiresModifierData; struct Object; +struct PaintOverlay; struct RegionView3D; +struct Scene; struct wmKeyConfig; struct wmWindowManager; /* sculpt.c */ void ED_operatortypes_sculpt(void); -void sculpt_get_redraw_planes(float planes[4][4], struct ARegion *ar, - struct RegionView3D *rv3d, struct Object *ob); -void ED_sculpt_force_update(struct bContext *C); /* paint_ops.c */ void ED_operatortypes_paint(void); @@ -52,4 +52,21 @@ void ED_keymap_paint(struct wmKeyConfig *keyconf); int ED_undo_paint_step(struct bContext *C, int type, int step, const char *name); void ED_undo_paint_free(void); +typedef struct PaintLayerUndoNode PaintLayerUndoNode; +PaintLayerUndoNode *paint_layer_undo_push(int type, char *description); +void paint_layer_undo_set_add(PaintLayerUndoNode *unode, char *name); +void paint_layer_undo_set_remove(PaintLayerUndoNode *unode, char *name, + struct CustomData *data, struct CustomData *fdata, + int totvert, int totface); + +/* paint_util.c */ +struct MultiresModifierData *ED_paint_multires_active(struct Scene *scene, struct Object *ob); +void paint_get_redraw_planes(float planes[4][4], struct ARegion *ar, + struct RegionView3D *rv3d, struct Object *ob); +void ED_paint_force_update(struct bContext *C); + +/* paint_vertex.c */ +void ED_paint_overlay_draw(const struct bContext *C, struct ARegion *ar); +void ED_paint_update_overlay(struct PaintOverlay *overlay); + #endif |