Blender V4.3
ED_sculpt.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11struct Object;
12struct ReportList;
13struct UndoType;
14struct bContext;
15struct wmOperator;
16struct wmKeyConfig;
17
19
21 Depsgraph &depsgraph,
22 Scene &scene,
23 Object &ob,
24 bool force_dyntopo,
25 ReportList *reports);
26void object_sculpt_mode_enter(bContext *C, Depsgraph &depsgraph, ReportList *reports);
27void object_sculpt_mode_exit(Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob);
28void object_sculpt_mode_exit(bContext *C, Depsgraph &depsgraph);
29
30/* `sculpt.cc` */
31
37bool report_if_shape_key_is_locked(const Object &ob, ReportList *reports);
38
40
41void keymap_sculpt(wmKeyConfig *keyconf);
42
43/* `sculpt_transform.cc` */
44
46void init_transform(bContext *C, Object &ob, const float mval_fl[2], const char *undo_name);
47void end_transform(bContext *C, Object &ob);
48
49/* `sculpt_undo.cc` */
50
51namespace undo {
52
53void register_type(UndoType *ut);
54
60void geometry_begin(const Scene &scene, Object &ob, const wmOperator *op);
61void geometry_begin_ex(const Scene &scene, Object &ob, const char *name);
62void geometry_end(Object &ob);
63
68void push_multires_mesh_begin(bContext *C, const char *str);
69void push_multires_mesh_end(bContext *C, const char *str);
70
71} // namespace undo
72
73namespace face_set {
74
76void initialize_none_to_id(Mesh *mesh, int new_id);
77int active_update_and_get(bContext *C, Object &ob, const float mval_fl[2]);
78
79} // namespace face_set
80
88bool object_active_color_fill(Object &ob, const float fill_color[4], bool only_selected);
89
90} // namespace blender::ed::sculpt_paint
const Depsgraph * depsgraph
#define str(s)
void initialize_none_to_id(Mesh *mesh, int new_id)
int active_update_and_get(bContext *C, Object &ob, const float mval_fl[2])
void push_multires_mesh_begin(bContext *C, const char *str)
void push_multires_mesh_end(bContext *C, const char *str)
void geometry_begin_ex(const Scene &scene, Object &ob, const char *name)
void geometry_begin(const Scene &scene, Object &ob, const wmOperator *op)
void object_sculpt_mode_enter(Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob, bool force_dyntopo, ReportList *reports)
void update_modal_transform(bContext *C, Object &ob)
void keymap_sculpt(wmKeyConfig *keyconf)
void end_transform(bContext *C, Object &ob)
void init_transform(bContext *C, Object &ob, const float mval_fl[2], const char *undo_name)
bool report_if_shape_key_is_locked(const Object &ob, ReportList *reports)
Definition sculpt.cc:128
void object_sculpt_mode_exit(Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob)
bool object_active_color_fill(Object &ob, const float fill_color[4], bool only_selected)