Blender V4.3
paint_vertex_weight_utils.cc File Reference
#include <algorithm>
#include "BLI_listbase.h"
#include "BLI_string_utils.hh"
#include "DNA_armature_types.h"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
#include "BKE_action.hh"
#include "BKE_context.hh"
#include "BKE_deform.hh"
#include "BKE_mesh.hh"
#include "BKE_modifier.hh"
#include "BKE_object.hh"
#include "BKE_object_deform.h"
#include "BKE_report.hh"
#include "DEG_depsgraph_build.hh"
#include "IMB_imbuf.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "paint_intern.hh"

Go to the source code of this file.

Functions

int ED_wpaint_mirror_vgroup_ensure (Object *ob, const int vgroup_active)
 
Weight Paint Sanity Checks
bool ED_wpaint_ensure_data (bContext *C, ReportList *reports, eWPaintFlag flag, WPaintVGroupIndex *vgroup_index)
 
Weight Blending Modes
BLI_INLINE float wval_blend (const float weight, const float paintval, const float alpha)
 
BLI_INLINE float wval_add (const float weight, const float paintval, const float alpha)
 
BLI_INLINE float wval_sub (const float weight, const float paintval, const float alpha)
 
BLI_INLINE float wval_mul (const float weight, const float paintval, const float alpha)
 
BLI_INLINE float wval_lighten (const float weight, const float paintval, const float alpha)
 
BLI_INLINE float wval_darken (const float weight, const float paintval, const float alpha)
 
BLI_INLINE float wval_colordodge (float weight, float paintval, float fac)
 
BLI_INLINE float wval_difference (float weight, float paintval, float fac)
 
BLI_INLINE float wval_screen (float weight, float paintval, float fac)
 
BLI_INLINE float wval_hardlight (float weight, float paintval, float fac)
 
BLI_INLINE float wval_overlay (float weight, float paintval, float fac)
 
BLI_INLINE float wval_softlight (float weight, float paintval, float fac)
 
BLI_INLINE float wval_exclusion (float weight, float paintval, float fac)
 
float ED_wpaint_blend_tool (const int tool, const float weight, const float paintval, const float alpha)
 

Detailed Description

Intended for use by paint_vertex.cc & paint_vertex_weight_ops.cc.

Definition in file paint_vertex_weight_utils.cc.

Function Documentation

◆ ED_wpaint_blend_tool()

float ED_wpaint_blend_tool ( int tool,
float weight,
float paintval,
float alpha )

◆ ED_wpaint_ensure_data()

◆ ED_wpaint_mirror_vgroup_ensure()

◆ wval_add()

BLI_INLINE float wval_add ( const float weight,
const float paintval,
const float alpha )

Definition at line 158 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().

◆ wval_blend()

BLI_INLINE float wval_blend ( const float weight,
const float paintval,
const float alpha )

Definition at line 153 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool(), wval_darken(), and wval_lighten().

◆ wval_colordodge()

BLI_INLINE float wval_colordodge ( float weight,
float paintval,
float fac )

Definition at line 180 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().

◆ wval_darken()

BLI_INLINE float wval_darken ( const float weight,
const float paintval,
const float alpha )

Definition at line 174 of file paint_vertex_weight_utils.cc.

References wval_blend().

Referenced by ED_wpaint_blend_tool().

◆ wval_difference()

BLI_INLINE float wval_difference ( float weight,
float paintval,
float fac )

Definition at line 191 of file paint_vertex_weight_utils.cc.

References fabsf.

Referenced by ED_wpaint_blend_tool().

◆ wval_exclusion()

BLI_INLINE float wval_exclusion ( float weight,
float paintval,
float fac )

Definition at line 256 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().

◆ wval_hardlight()

BLI_INLINE float wval_hardlight ( float weight,
float paintval,
float fac )

Definition at line 211 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().

◆ wval_lighten()

BLI_INLINE float wval_lighten ( const float weight,
const float paintval,
const float alpha )

Definition at line 170 of file paint_vertex_weight_utils.cc.

References wval_blend().

Referenced by ED_wpaint_blend_tool().

◆ wval_mul()

BLI_INLINE float wval_mul ( const float weight,
const float paintval,
const float alpha )

Definition at line 166 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().

◆ wval_overlay()

BLI_INLINE float wval_overlay ( float weight,
float paintval,
float fac )

Definition at line 226 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().

◆ wval_screen()

BLI_INLINE float wval_screen ( float weight,
float paintval,
float fac )

Definition at line 201 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().

◆ wval_softlight()

BLI_INLINE float wval_softlight ( float weight,
float paintval,
float fac )

Definition at line 241 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().

◆ wval_sub()

BLI_INLINE float wval_sub ( const float weight,
const float paintval,
const float alpha )

Definition at line 162 of file paint_vertex_weight_utils.cc.

Referenced by ED_wpaint_blend_tool().