Blender V4.3
ED_sculpt.hh File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::sculpt_paint
 
namespace  blender::ed::sculpt_paint::undo
 
namespace  blender::ed::sculpt_paint::face_set
 

Functions

bool blender::ed::sculpt_paint::report_if_shape_key_is_locked (const Object &ob, ReportList *reports)
 
void blender::ed::sculpt_paint::operatortypes_sculpt ()
 
void blender::ed::sculpt_paint::keymap_sculpt (wmKeyConfig *keyconf)
 
void blender::ed::sculpt_paint::update_modal_transform (bContext *C, Object &ob)
 
void blender::ed::sculpt_paint::init_transform (bContext *C, Object &ob, const float mval_fl[2], const char *undo_name)
 
void blender::ed::sculpt_paint::end_transform (bContext *C, Object &ob)
 
bool blender::ed::sculpt_paint::object_active_color_fill (Object &ob, const float fill_color[4], bool only_selected)
 
Sculpt Mode Toggle Operator
void blender::ed::sculpt_paint::object_sculpt_mode_enter (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob, bool force_dyntopo, ReportList *reports)
 
void blender::ed::sculpt_paint::object_sculpt_mode_enter (bContext *C, Depsgraph &depsgraph, ReportList *reports)
 
void blender::ed::sculpt_paint::object_sculpt_mode_exit (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob)
 
void blender::ed::sculpt_paint::object_sculpt_mode_exit (bContext *C, Depsgraph &depsgraph)
 
Implements ED Undo System
void blender::ed::sculpt_paint::undo::register_type (UndoType *ut)
 
void blender::ed::sculpt_paint::undo::geometry_begin (const Scene &scene, Object &ob, const wmOperator *op)
 
void blender::ed::sculpt_paint::undo::geometry_begin_ex (const Scene &scene, Object &ob, const char *name)
 
void blender::ed::sculpt_paint::undo::geometry_end (Object &ob)
 
Undo for changes happening on a base mesh for multires sculpting.

Use this for multires operators which changes base mesh and which are to be possible. Example of such operators is Apply Base.

Usage:

static int operator_exec((bContext *C, wmOperator *op) {

ED_sculpt_undo_push_mixed_begin(C, op->type->name); // Modify base mesh. ED_sculpt_undo_push_mixed_end(C, op->type->name);

return OPERATOR_FINISHED; }

If object is not in sculpt mode or sculpt does not happen on multires then regular ED_undo_push() is used.

void blender::ed::sculpt_paint::undo::push_multires_mesh_begin (bContext *C, const char *str)
 
void blender::ed::sculpt_paint::undo::push_multires_mesh_end (bContext *C, const char *str)
 
Public API
int blender::ed::sculpt_paint::face_set::find_next_available_id (Object &object)
 
void blender::ed::sculpt_paint::face_set::initialize_none_to_id (Mesh *mesh, int new_id)
 
int blender::ed::sculpt_paint::face_set::active_update_and_get (bContext *C, Object &ob, const float mval_fl[2])