Blender V5.3
paint_vertex_weight_ops.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_bitmap.hh"
#include "BLI_enum_flags.hh"
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_vector_c.hh"
#include "DNA_brush_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "BKE_attribute.hh"
#include "BKE_brush.hh"
#include "BKE_colortools.hh"
#include "BKE_context.hh"
#include "BKE_deform.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_iterators.hh"
#include "BKE_modifier.hh"
#include "BKE_object.hh"
#include "BKE_object_deform.h"
#include "BKE_paint.hh"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_armature.hh"
#include "ED_mesh.hh"
#include "ED_screen.hh"
#include "ED_view3d.hh"
#include "UI_interface.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "../paint_intern.hh"

Go to the source code of this file.

Classes

struct  blender::WPaintPrev
struct  blender::WPGradient_vertStore
struct  blender::WPGradient_vertStoreBase
struct  blender::WPGradient_userData

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Store Previous Weights

Use to avoid feedback loop w/ mirrored edits.

static void blender::wpaint_prev_init (WPaintPrev *wpp)
static void blender::wpaint_prev_create (WPaintPrev *wpp, MDeformVert *dverts, int dcount)
static void blender::wpaint_prev_destroy (WPaintPrev *wpp)
Weight from Bones Operator
static bool blender::weight_from_bones_poll (bContext *C)
static wmOperatorStatus blender::weight_from_bones_exec (bContext *C, wmOperator *op)
void blender::PAINT_OT_weight_from_bones (wmOperatorType *ot)
Sample Weight Operator
static wmOperatorStatus blender::weight_sample_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::PAINT_OT_weight_sample (wmOperatorType *ot)
Weight Paint Sample Group Operator
static bool blender::weight_paint_sample_mark_groups (const MDeformVert *dvert, MutableSpan< bool > groups)
static wmOperatorStatus blender::weight_sample_group_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::PAINT_OT_weight_sample_group (wmOperatorType *ot)
Weight Set Operator
static bool blender::weight_paint_set (Object *ob, float paintweight)
static wmOperatorStatus blender::weight_paint_set_exec (bContext *C, wmOperator *op)
void blender::PAINT_OT_weight_set (wmOperatorType *ot)

Interactive Weight Gradient Operator

enum  { blender::WPAINT_GRADIENT_TYPE_LINEAR , blender::WPAINT_GRADIENT_TYPE_RADIAL }
 blender::ENUM_OPERATORS (WPGradient_vertStore::Flag)
static void blender::gradientVert_update (WPGradient_userData *grad_data, int index)
static void blender::gradientVertUpdate__mapFunc (void *user_data, int index, const float[3], const float[3])
static void blender::gradientVertInit__mapFunc (void *user_data, int index, const float co[3], const float[3])
static wmOperatorStatus blender::paint_weight_gradient_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::paint_weight_gradient_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::paint_weight_gradient_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::PAINT_OT_weight_gradient (wmOperatorType *ot)