Blender V4.3
paint_vertex_color_ops.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_array.hh"
#include "BLI_function_ref.hh"
#include "BLI_math_base.h"
#include "BLI_math_color.h"
#include "BLI_vector.hh"
#include "BKE_attribute_math.hh"
#include "BKE_context.hh"
#include "BKE_deform.hh"
#include "BKE_geometry_set.hh"
#include "BKE_mesh.hh"
#include "DEG_depsgraph.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_mesh.hh"
#include "paint_intern.hh"
#include "sculpt_intern.hh"
#include "sculpt_undo.hh"

Go to the source code of this file.

Functions

Internal Utility Functions
static bool vertex_weight_paint_mode_poll (bContext *C)
 
static void tag_object_after_update (Object &object)
 
Vertex Color from Weight Operator
static bool vertex_paint_from_weight (Object &ob)
 
static int vertex_paint_from_weight_exec (bContext *C, wmOperator *)
 
void PAINT_OT_vertex_color_from_weight (wmOperatorType *ot)
 
Smooth Vertex Colors Operator
static IndexMask get_selected_indices (const Mesh &mesh, const blender::bke::AttrDomain domain, IndexMaskMemory &memory)
 
static void face_corner_color_equalize_verts (Mesh &mesh, const IndexMask selection)
 
static bool vertex_color_smooth (Object &ob)
 
static int vertex_color_smooth_exec (bContext *C, wmOperator *)
 
void PAINT_OT_vertex_color_smooth (wmOperatorType *ot)
 
Vertex Color Transformation Operators
static void transform_active_color_data (Mesh &mesh, const FunctionRef< void(ColorGeometry4f &color)> transform_fn)
 
static void transform_active_color (bContext *C, wmOperator *op, const FunctionRef< void(ColorGeometry4f &color)> transform_fn)
 
static int vertex_color_brightness_contrast_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_brightness_contrast (wmOperatorType *ot)
 
static int vertex_color_hsv_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_hsv (wmOperatorType *ot)
 
static int vertex_color_invert_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_invert (wmOperatorType *ot)
 
static int vertex_color_levels_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_levels (wmOperatorType *ot)
 

Function Documentation

◆ face_corner_color_equalize_verts()

static void face_corner_color_equalize_verts ( Mesh & mesh,
const IndexMask selection )
static

◆ get_selected_indices()

static IndexMask get_selected_indices ( const Mesh & mesh,
const blender::bke::AttrDomain domain,
IndexMaskMemory & memory )
static

◆ PAINT_OT_vertex_color_brightness_contrast()

◆ PAINT_OT_vertex_color_from_weight()

◆ PAINT_OT_vertex_color_hsv()

◆ PAINT_OT_vertex_color_invert()

◆ PAINT_OT_vertex_color_levels()

◆ PAINT_OT_vertex_color_smooth()

◆ tag_object_after_update()

static void tag_object_after_update ( Object & object)
static

◆ transform_active_color()

◆ transform_active_color_data()

◆ vertex_color_brightness_contrast_exec()

◆ vertex_color_hsv_exec()

◆ vertex_color_invert_exec()

◆ vertex_color_levels_exec()

◆ vertex_color_smooth()

◆ vertex_color_smooth_exec()

◆ vertex_paint_from_weight()

◆ vertex_paint_from_weight_exec()

◆ vertex_weight_paint_mode_poll()

static bool vertex_weight_paint_mode_poll ( bContext * C)
static