|
Blender V4.3
|
#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.
Definition at line 184 of file paint_vertex_color_ops.cc.
References BLI_assert_unreachable, and blender::GVArrayCommon::materialize().
Referenced by vertex_color_smooth().
|
static |
Definition at line 164 of file paint_vertex_color_ops.cc.
References ME_EDIT_PAINT_FACE_SEL, and ME_EDIT_PAINT_VERT_SEL.
Referenced by transform_active_color_data(), and vertex_color_smooth().
| void PAINT_OT_vertex_color_brightness_contrast | ( | wmOperatorType * | ot | ) |
Definition at line 378 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, min, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_property_ui_range(), wmOperatorType::srna, vertex_color_brightness_contrast_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_from_weight | ( | wmOperatorType * | ot | ) |
Definition at line 141 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_paint_from_weight_exec(), and vertex_weight_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_hsv | ( | wmOperatorType * | ot | ) |
Definition at line 436 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_color_hsv_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_invert | ( | wmOperatorType * | ot | ) |
Definition at line 476 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_color_invert_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_levels | ( | wmOperatorType * | ot | ) |
Definition at line 516 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_color_levels_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 235 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_color_smooth_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
|
static |
Definition at line 62 of file paint_vertex_color_ops.cc.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BLI_assert, DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, and OB_MESH.
Referenced by vertex_color_smooth(), and vertex_paint_from_weight().
|
static |
Definition at line 305 of file paint_vertex_color_ops.cc.
References BKE_sculpt_update_object_for_edit(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), Object::data, depsgraph, NC_OBJECT, ND_DRAW, blender::bke::pbvh::Tree::tag_attribute_changed(), transform_active_color_data(), and WM_event_add_notifier().
Referenced by vertex_color_brightness_contrast_exec(), vertex_color_hsv_exec(), vertex_color_invert_exec(), and vertex_color_levels_exec().
|
static |
Definition at line 256 of file paint_vertex_color_ops.cc.
References BLI_assert_unreachable, DEG_id_tag_update(), blender::bke::GAttributeWriter::domain, blender::bke::GAttributeWriter::finish(), blender::GVArrayCommon::get(), get_selected_indices(), blender::GVMutableArray::set_by_copy(), blender::GVArrayCommon::type(), and blender::bke::GAttributeWriter::varray.
Referenced by transform_active_color().
|
static |
Definition at line 335 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ED_mesh_color_ensure(), max_ff(), mesh, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and transform_active_color().
Referenced by PAINT_OT_vertex_color_brightness_contrast().
|
static |
Definition at line 401 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ED_mesh_color_ensure(), hsv_to_rgb_v(), mesh, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, rgb_to_hsv_v(), RNA_float_get(), and transform_active_color().
Referenced by PAINT_OT_vertex_color_hsv().
|
static |
Definition at line 456 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ED_mesh_color_ensure(), mesh, OPERATOR_CANCELLED, OPERATOR_FINISHED, and transform_active_color().
Referenced by PAINT_OT_vertex_color_invert().
|
static |
Definition at line 491 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ED_mesh_color_ensure(), mesh, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), transform_active_color(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_levels().
|
static |
Definition at line 205 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), ED_mesh_color_ensure(), face_corner_color_equalize_verts(), get_selected_indices(), mesh, and tag_object_after_update().
Referenced by vertex_color_smooth_exec().
|
static |
Definition at line 225 of file paint_vertex_color_ops.cc.
References CTX_data_active_object(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, vertex_color_smooth(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_smooth().
|
static |
Definition at line 77 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), BLI_assert_unreachable, BLI_findlink(), blender::bke::GAttributeWriter::domain, ED_mesh_color_ensure(), blender::bke::GAttributeWriter::finish(), mesh, bDeformGroup::name, blender::GVMutableArray::set_all(), tag_object_after_update(), blender::GVArrayCommon::type(), and blender::bke::GAttributeWriter::varray.
Referenced by vertex_paint_from_weight_exec().
|
static |
Definition at line 131 of file paint_vertex_color_ops.cc.
References CTX_data_active_object(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, vertex_paint_from_weight(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_from_weight().
|
static |
Definition at line 54 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ELEM, Object::mode, OB_MODE_VERTEX_PAINT, and OB_MODE_WEIGHT_PAINT.
Referenced by PAINT_OT_vertex_color_from_weight().