70 "RANDOM_PER_FACE_SET",
72 "Random per Face Set",
77 "RANDOM_PER_LOOSE_PART",
79 "Random per Loose Part",
93 const int mode =
data->mask_init_mode;
94 const int seed =
data->mask_init_seed;
143 .mask_init_mode = mode,
struct Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C)
struct Object * CTX_data_active_object(const bContext *C)
void multires_stitch_grids(struct Object *)
General operations, lookup, etc. for blender objects.
void BKE_sculpt_update_object_for_edit(struct Depsgraph *depsgraph, struct Object *ob_orig, bool need_pmap, bool need_mask, bool is_paint_tool)
A BVH for high poly meshes.
#define BKE_pbvh_vertex_iter_begin(pbvh, node, vi, mode)
#define BKE_pbvh_vertex_iter_end
void BKE_pbvh_parallel_range_settings(struct TaskParallelSettings *settings, bool use_threading, int totnode)
void BKE_pbvh_update_vertex_data(PBVH *pbvh, int flags)
void BKE_pbvh_node_mark_update_mask(PBVHNode *node)
void BKE_pbvh_search_gather(PBVH *pbvh, BKE_pbvh_SearchCallback scb, void *search_data, PBVHNode ***array, int *tot)
BLI_INLINE float BLI_hash_int_01(unsigned int k)
void BLI_task_parallel_range(int start, int stop, void *userdata, TaskParallelRangeFunc func, const TaskParallelSettings *settings)
struct Depsgraph Depsgraph
Object is a sort of wrapper for general info.
Read Guarded memory(de)allocation.
Platform independent time functions.
static unsigned long seed
const Depsgraph * depsgraph
int RNA_enum_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
void SCULPT_connected_components_ensure(Object *ob)
bool SCULPT_mode_poll(bContext *C)
int SCULPT_vertex_face_set_get(SculptSession *ss, int index)
void SCULPT_tag_update_overlays(bContext *C)
void SCULPT_undo_push_begin(struct Object *ob, const char *name)
void SCULPT_undo_push_end(struct Object *ob)
SculptUndoNode * SCULPT_undo_push_node(Object *ob, PBVHNode *node, SculptUndoType type)
void SCULPT_OT_mask_init(wmOperatorType *ot)
@ SCULPT_MASK_INIT_RANDOM_PER_LOOSE_PART
@ SCULPT_MASK_INIT_RANDOM_PER_FACE_SET
@ SCULPT_MASK_INIT_RANDOM_PER_VERTEX
static EnumPropertyItem prop_sculpt_mask_init_mode_types[]
static void mask_init_task_cb(void *__restrict userdata, const int i, const TaskParallelTLS *__restrict UNUSED(tls))
static int sculpt_mask_init_exec(bContext *C, wmOperator *op)
struct SculptSession * sculpt
SculptVertexInfo vertex_info
int * connected_component
bool(* poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
double PIL_check_seconds_timer(void)