|
Blender V5.0
|
#include "MEM_guardedalloc.h"#include "CLG_log.h"#include "BLI_color.hh"#include "BLI_color_mix.hh"#include "BLI_enumerable_thread_specific.hh"#include "BLI_math_geom.h"#include "BLI_math_matrix.hh"#include "BLI_task.hh"#include "BLI_vector.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_editmesh.hh"#include "BKE_library.hh"#include "BKE_mesh.hh"#include "BKE_object.hh"#include "BKE_object_types.hh"#include "BKE_paint.hh"#include "BKE_paint_types.hh"#include "DEG_depsgraph.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_toolsystem.hh"#include "WM_types.hh"#include "ED_image.hh"#include "ED_mesh.hh"#include "ED_object.hh"#include "ED_object_vgroup.hh"#include "ED_paint.hh"#include "ED_screen.hh"#include "ED_sculpt.hh"#include "ED_view3d.hh"#include "IMB_imbuf.hh"#include "bmesh.hh"#include "mesh_brush_common.hh"#include "paint_intern.hh"#include "sculpt_automask.hh"#include "sculpt_intern.hh"#include "sculpt_pose.hh"Go to the source code of this file.
Classes | |
| struct | VPaintAverageAccum< BlendType > |
| struct | VPaintData |
| struct | NormalAnglePrecalc |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::sculpt_paint |
| namespace | blender::ed::sculpt_paint::vwpaint |
Enumerations | |
| enum class | AttrDomain |
Variables | |
| static CLG_LogRef | LOG = {"paint.vertex"} |
Used for vertex color & weight paint and mode switching.
Definition in file paint_vertex.cc.
|
strong |
Definition at line 63 of file BKE_attribute.hh.
|
static |
Definition at line 1602 of file paint_vertex.cc.
References blend(), SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), col, blender::ed::sculpt_paint::Color, blender::bke::Corner, depsgraph, ViewContext::depsgraph, VPaintData::domain, blender::bke::mesh::face_find_corner_from_vert(), faces, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::index_mask::IndexMask::foreach_index(), i, VPaintAverageAccum< BlendType >::len, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::paintcol, blender::bke::Point, blender::ed::sculpt_paint::StrokeCache::radius, Object::sculpt, blender::offset_indices::GroupedSpan< T >::size(), sqrtf, to_static_color_type(), toFloat(), VPaintData::type, VPaintAverageAccum< BlendType >::value, VPaintData::vc, blender::bke::pbvh::vert_positions_eval(), and verts.
Referenced by vpaint_paint_leaves().
|
static |
Definition at line 1101 of file paint_vertex.cc.
References blend(), blender::ed::sculpt_paint::StrokeCache::brush, brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, C, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), col, blender::ed::sculpt_paint::Color, CTX_data_depsgraph_pointer(), depsgraph, dot_v3v3(), blender::bke::Face, blender::bke::mesh::face_find_corner_from_vert(), faces, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data(), i, blender::Span< T >::is_empty(), isZero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::normal_angle_precalc, VPaint::paint, blender::bke::Point, VPaintData::prev_colors, blender::ed::sculpt_paint::StrokeCache::radius, Object::sculpt, SCULPT_brush_frontface_normal_from_falloff_shape(), sqrtf, blender::ed::sculpt_paint::vwpaint::test_brush_angle_falloff(), to_static_color_type(), VPaintData::type, blender::ed::sculpt_paint::vwpaint::use_normal(), blender::bke::pbvh::vert_normals_eval(), blender::bke::pbvh::vert_positions_eval(), verts, and vpaint_blend().
Referenced by vpaint_do_blur().
|
static |
Definition at line 1256 of file paint_vertex.cc.
References blend(), blender::ed::sculpt_paint::StrokeCache::brush, brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, C, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), col, blender::ed::sculpt_paint::Color, CTX_data_depsgraph_pointer(), depsgraph, dot_v3v3(), blender::bke::Face, faces, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data(), i, blender::Span< T >::is_empty(), isZero(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::normal_angle_precalc, VPaint::paint, blender::bke::Point, VPaintData::prev_colors, blender::ed::sculpt_paint::StrokeCache::radius, Object::sculpt, SCULPT_brush_frontface_normal_from_falloff_shape(), blender::Span< T >::slice(), sqrtf, blender::ed::sculpt_paint::vwpaint::test_brush_angle_falloff(), to_static_color_type(), VPaintData::type, blender::ed::sculpt_paint::vwpaint::use_normal(), blender::bke::pbvh::vert_normals_eval(), blender::bke::pbvh::vert_positions_eval(), verts, and vpaint_blend().
Referenced by vpaint_do_blur().
|
static |
Definition at line 1402 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::brush, brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, C, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::Color, VPaintData::color_curr, VPaintData::color_prev, CTX_data_depsgraph_pointer(), depsgraph, VPaintData::domain, dot_v3v3(), blender::bke::Face, blender::bke::mesh::face_find_corner_from_vert(), faces, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data(), i, if(), blender::Span< T >::is_empty(), blender::ed::sculpt_paint::StrokeCache::is_last_valid, isZero(), blender::ed::sculpt_paint::StrokeCache::last_location_symm, blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::bke::AttributeAccessor::lookup(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::normal_angle_precalc, normalize_v3(), VPaint::paint, blender::bke::Point, VPaintData::prev_colors, project_plane_v3_v3v3(), blender::ed::sculpt_paint::StrokeCache::radius, Object::sculpt, SCULPT_brush_frontface_normal_from_falloff_shape(), VPaintData::smear, sub_v3_v3v3(), blender::ed::sculpt_paint::vwpaint::test_brush_angle_falloff(), to_static_color_type(), VPaintData::type, blender::ed::sculpt_paint::vwpaint::use_normal(), blender::bke::pbvh::vert_normals_eval(), blender::bke::pbvh::vert_positions_eval(), verts, blender::ed::sculpt_paint::StrokeCache::view_normal_symm, and vpaint_blend().
Referenced by vpaint_paint_leaves().
| void ED_object_vpaintmode_enter | ( | bContext * | C, |
| Depsgraph & | depsgraph ) |
Definition at line 821 of file paint_vertex.cc.
References C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), depsgraph, and ED_object_vpaintmode_enter_ex().
| void ED_object_vpaintmode_enter_ex | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Scene & | scene, | ||
| Object & | ob ) |
Definition at line 817 of file paint_vertex.cc.
References depsgraph, blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), and OB_MODE_VERTEX_PAINT.
Referenced by ED_editors_init(), ED_object_vpaintmode_enter(), and vpaint_mode_toggle_exec().
| void ED_object_vpaintmode_exit | ( | bContext * | C | ) |
Definition at line 839 of file paint_vertex.cc.
References C, CTX_data_active_object(), and ED_object_vpaintmode_exit_ex().
| void ED_object_vpaintmode_exit_ex | ( | Object & | ob | ) |
Definition at line 835 of file paint_vertex.cc.
References blender::ed::sculpt_paint::vwpaint::mode_exit_generic(), and OB_MODE_VERTEX_PAINT.
Referenced by blender::ed::object::ed_object_mode_generic_exit_ex(), ED_object_vpaintmode_exit(), and vpaint_mode_toggle_exec().
|
static |
Definition at line 1088 of file paint_vertex.cc.
References BLI_assert, i, blender::MutableSpan< T >::size(), and verts.
Referenced by calculate_average_color(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), and vpaint_do_draw().
|
static |
Definition at line 108 of file paint_vertex.cc.
References blender::color::encode().
Referenced by paint_and_tex_color_alpha().
|
static |
Definition at line 1726 of file paint_vertex.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, BKE_brush_color_jitter_get_settings(), BKE_paint_randomize_color(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, blender::ed::sculpt_paint::StrokeCache::initial_hsv_jitter, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, and blender::ed::sculpt_paint::StrokeCache::stroke_distance.
Referenced by vpaint_do_draw().
|
static |
|
static |
|
static |
Definition at line 1710 of file paint_vertex.cc.
References fromFloat(), mul_v3_v3(), paint_and_tex_color_alpha_intern(), VPaintData::paintcol, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, toFloat(), and VPaintData::vc.
|
static |
Definition at line 780 of file paint_vertex.cc.
References BKE_brush_mask_texture_get(), BKE_brush_sample_tex_3d(), BKE_paint_brush_for_read(), BLI_assert, MTex::brush_map_mode, ED_view3d_project_float_object(), MTEX_MAP_MODE_3D, OB_MODE_SCULPT, VPaint::paint, ViewContext::region, MTex::tex, V3D_PROJ_RET_OK, V3D_PROJ_TEST_CLIP_BB, V3D_PROJ_TEST_CLIP_NEAR, and zero_v4().
Referenced by paint_and_tex_color_alpha().
| void PAINT_OT_vertex_color_set | ( | wmOperatorType * | ot | ) |
Definition at line 2375 of file paint_vertex.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), vertex_color_set_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_paint | ( | wmOperatorType * | ot | ) |
Definition at line 2166 of file paint_vertex.cc.
References OPTYPE_BLOCKING, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), vertex_paint_poll(), vpaint_cancel(), vpaint_exec(), vpaint_invoke(), and vpaint_modal().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_paint_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 897 of file paint_vertex.cc.
References blender::ed::sculpt_paint::vwpaint::mode_toggle_poll_test(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and vpaint_mode_toggle_exec().
Referenced by ED_operatortypes_paint().
|
static |
Definition at line 934 of file paint_vertex.cc.
References BLI_assert_unreachable, blender::bke::ColorByte, and blender::bke::ColorFloat.
Referenced by calculate_average_color(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), blender::ed::sculpt_paint::color::gather_colors(), blender::ed::sculpt_paint::color::gather_colors_vert(), and vpaint_do_draw().
|
static |
Definition at line 98 of file paint_vertex.cc.
References blender::color::decode().
Referenced by calculate_average_color(), and paint_and_tex_color_alpha().
|
static |
Definition at line 2345 of file paint_vertex.cc.
References blender::bke::pbvh::all_leaf_nodes(), BKE_mesh_from_object(), BKE_sculpt_update_object_for_edit(), C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), Object::data, blender::ed::sculpt_paint::fill_active_color(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), wmOperator::ptr, RNA_boolean_get(), blender::bke::pbvh::Tree::tag_attribute_changed(), Scene::toolsettings, ToolSettings::vpaint, vpaint_get_current_col(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_set().
|
static |
Definition at line 806 of file paint_vertex.cc.
References depsgraph, and blender::ed::sculpt_paint::vwpaint::init_stroke().
Referenced by vpaint_stroke_test_start().
| bool vertex_paint_mode_poll | ( | bContext * | C | ) |
Returns true if vertex paint mode is active.
Definition at line 607 of file paint_vertex.cc.
References BKE_color_attribute_supported(), C, CTX_data_active_object(), Object::data, Object::mode, and OB_MODE_VERTEX_PAINT.
Referenced by ED_keymap_paint(), PAINT_OT_vertex_color_brightness_contrast(), PAINT_OT_vertex_color_hsv(), PAINT_OT_vertex_color_invert(), PAINT_OT_vertex_color_levels(), PAINT_OT_vertex_color_set(), PAINT_OT_vertex_color_smooth(), and vertex_paint_poll_ex().
| bool vertex_paint_poll | ( | bContext * | C | ) |
Definition at line 642 of file paint_vertex.cc.
References C, and vertex_paint_poll_ex().
Referenced by blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), and PAINT_OT_vertex_paint().
|
static |
Definition at line 626 of file paint_vertex.cc.
References BKE_paint_brush(), C, CTX_data_tool_settings(), CTX_wm_area(), CTX_wm_region(), ARegion::regiontype, RGN_TYPE_WINDOW, SPACE_VIEW3D, ScrArea::spacetype, vertex_paint_mode_poll(), and WM_toolsystem_active_tool_is_brush().
Referenced by vertex_paint_poll(), and vertex_paint_poll_ignore_tool().
| bool vertex_paint_poll_ignore_tool | ( | bContext * | C | ) |
Definition at line 647 of file paint_vertex.cc.
References C, and vertex_paint_poll_ex().
Referenced by sample_color_poll().
|
static |
Definition at line 667 of file paint_vertex.cc.
References BKE_paint_brush_for_read(), blend(), Brush::blend, blender::color::BLI_mix_colors(), BRUSH_LOCK_ALPHA, blender::ed::sculpt_paint::vwpaint::brush_use_accumulate(), blender::ed::sculpt_paint::Color, ELEM, Brush::flag, IMB_BLEND_ADD_ALPHA, IMB_BLEND_ERASE_ALPHA, and VPaint::paint.
Referenced by do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), and vpaint_blend_stroke().
|
static |
If in accumulate mode, blend brush mark directly onto mesh, else blend into temporary stroke_buffer and blend the stroke onto the mesh.
| brush_mark_alpha | Modulated strength on a per-vertex basis |
| brush_strength | Unmodified raw value of the brush |
Definition at line 732 of file paint_vertex.cc.
References BLI_assert, blender::color::BLI_mix_colors(), brush_strength(), blender::ed::sculpt_paint::vwpaint::brush_use_accumulate(), blender::ed::sculpt_paint::Color, IMB_BLEND_MIX, blender::MutableSpan< T >::is_empty(), isZero(), result, and vpaint_blend().
|
static |
Definition at line 2152 of file paint_vertex.cc.
References C, SculptSession::cache, CTX_data_active_object(), wmOperator::customdata, blender::ed::sculpt_paint::paint_stroke_cancel(), and Object::sculpt.
Referenced by PAINT_OT_vertex_paint().
|
static |
Definition at line 1899 of file paint_vertex.cc.
References C, do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), VPaintData::domain, and blender::bke::Point.
Referenced by vpaint_paint_leaves().
|
static |
Definition at line 1744 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::brush, brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, C, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), CTX_data_depsgraph_pointer(), depsgraph, VPaintData::domain, dot_v3v3(), blender::bke::Face, faces, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data(), get_brush_color(), i, if(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::normal_angle_precalc, VPaint::paint, VPaintData::paintcol, blender::bke::Point, VPaintData::prev_colors, blender::ed::sculpt_paint::StrokeCache::radius, Object::sculpt, SCULPT_brush_frontface_normal_from_falloff_shape(), VPaintData::stroke_buffer, blender::ed::sculpt_paint::vwpaint::test_brush_angle_falloff(), to_static_color_type(), VPaintData::type, blender::ed::sculpt_paint::vwpaint::use_normal(), blender::bke::pbvh::vert_normals_eval(), blender::bke::pbvh::vert_positions_eval(), and verts.
Referenced by vpaint_paint_leaves().
|
static |
Definition at line 1944 of file paint_vertex.cc.
References angle(), BLI_assert, C, SculptSession::cache, CTX_data_depsgraph_pointer(), depsgraph, blender::bke::GSpanAttributeWriter::domain, VPaintData::domain, blender::bke::GSpanAttributeWriter::finish(), i, blender::ed::sculpt_paint::vwpaint::pbvh_gather_generic(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, Object::sculpt, SCULPT_cache_calc_brushdata_symm(), blender::bke::GSpanAttributeWriter::span, and vpaint_paint_leaves().
Referenced by vpaint_do_radial_symmetry(), and vpaint_do_symmetrical_brush_actions().
|
static |
Definition at line 1980 of file paint_vertex.cc.
References angle(), C, i, M_PI, and vpaint_do_paint().
Referenced by vpaint_do_symmetrical_brush_actions().
|
static |
Definition at line 1997 of file paint_vertex.cc.
References BKE_paint_brush_for_read(), C, SculptSession::cache, copy_v3_v3(), Object::data, i, blender::ed::sculpt_paint::StrokeCache::is_last_valid, blender::ed::sculpt_paint::is_symmetry_iteration_valid(), blender::ed::sculpt_paint::StrokeCache::last_location, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, VPaint::paint, blender::ed::sculpt_paint::StrokeCache::radial_symmetry_pass, Object::sculpt, SCULPT_cache_calc_brushdata_symm(), SCULPT_mesh_symmetry_xyz_get(), blender::ed::sculpt_paint::StrokeCache::symmetry, vpaint_do_paint(), and vpaint_do_radial_symmetry().
Referenced by vpaint_stroke_update_step().
|
static |
Definition at line 2136 of file paint_vertex.cc.
References C, wmOperator::customdata, OPERATOR_FINISHED, blender::ed::sculpt_paint::paint_stroke_exec(), blender::ed::sculpt_paint::paint_stroke_new(), blender::ed::sculpt_paint::stroke_get_location_bvh(), vpaint_stroke_done(), vpaint_stroke_test_start(), and vpaint_stroke_update_step().
Referenced by PAINT_OT_vertex_paint().
|
static |
Definition at line 652 of file paint_vertex.cc.
References BKE_brush_color_get(), BKE_brush_secondary_color_get(), BKE_paint_brush_for_read(), copy_v3_v3(), and VPaint::paint.
Referenced by vertex_color_set_exec(), and vpaint_init_vpaint().
|
static |
Definition at line 986 of file paint_vertex.cc.
References BRUSH_FRONTFACE_FALLOFF, BRUSH_STROKE_INVERT, blender::ed::sculpt_paint::vwpaint::brush_use_accumulate(), SculptSession::building_vp_handle, C, depsgraph, ED_view3d_viewcontext_init(), ED_vpaint_proj_handle_create(), Brush::falloff_angle, Brush::flag, blender::GVArrayCommon::materialize(), Brush::mtex, wmOperator::ptr, RNA_enum_get(), Object::sculpt, blender::GVArrayCommon::size(), MTex::tex, blender::GVArrayCommon::type(), blender::CPPType::value_initialize_n(), Brush::vertex_brush_type, blender::ed::sculpt_paint::vwpaint::view_angle_limits_init(), VPAINT_BRUSH_TYPE_BLUR, VPAINT_BRUSH_TYPE_SMEAR, and vpaint_get_current_col().
Referenced by vpaint_stroke_test_start().
|
static |
Definition at line 2110 of file paint_vertex.cc.
References BLI_assert, C, wmOperator::customdata, wmOperatorType::modal, OPERATOR_FINISHED, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, blender::ed::sculpt_paint::paint_stroke_free(), blender::ed::sculpt_paint::paint_stroke_new(), blender::ed::sculpt_paint::stroke_get_location_bvh(), wmEvent::type, wmOperator::type, vpaint_stroke_done(), vpaint_stroke_test_start(), vpaint_stroke_update_step(), and WM_event_add_modal_handler().
Referenced by PAINT_OT_vertex_paint().
|
static |
Definition at line 2161 of file paint_vertex.cc.
References C, wmOperator::customdata, and blender::ed::sculpt_paint::paint_stroke_modal().
Referenced by PAINT_OT_vertex_paint().
|
static |
Definition at line 854 of file paint_vertex.cc.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_mesh_from_object(), BKE_paint_brushes_validate(), C, CTX_data_active_object(), CTX_data_depsgraph_on_load(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_wm_message_bus(), Object::data, DEG_id_tag_update(), depsgraph, ED_object_vpaintmode_enter_ex(), ED_object_vpaintmode_exit_ex(), Object::id, Object::mode, blender::ed::object::mode_compat_set(), NC_SCENE, ND_MODE, OB_MODE_VERTEX_PAINT, OPERATOR_CANCELLED, OPERATOR_FINISHED, VPaint::paint, wmOperator::reports, Scene::toolsettings, ToolSettings::vpaint, WM_event_add_notifier(), WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by PAINT_OT_vertex_paint_toggle().
|
static |
Definition at line 1916 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::brush, C, SculptSession::cache, calculate_average_color(), do_vpaint_brush_smear(), Object::sculpt, Brush::vertex_brush_type, VPAINT_BRUSH_TYPE_AVERAGE, VPAINT_BRUSH_TYPE_BLUR, VPAINT_BRUSH_TYPE_DRAW, VPAINT_BRUSH_TYPE_SMEAR, vpaint_do_blur(), and vpaint_do_draw().
Referenced by vpaint_do_paint().
|
static |
Definition at line 2091 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::alt_smooth, C, SculptSession::cache, CTX_data_tool_settings(), NC_OBJECT, ND_DRAW, ViewContext::obact, VPaint::paint, blender::ed::sculpt_paint::paint_stroke_mode_data(), Object::sculpt, blender::ed::sculpt_paint::vwpaint::smooth_brush_toggle_off(), VPaintData::vc, ToolSettings::vpaint, and WM_event_add_notifier().
Referenced by vpaint_exec(), and vpaint_invoke().
|
static |
Definition at line 1050 of file paint_vertex.cc.
References BKE_color_attribute_supported(), BKE_mesh_from_object(), BKE_paint_brush(), C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), wmOperator::customdata, depsgraph, ED_mesh_color_ensure(), blender::ed::sculpt_paint::vwpaint::init_session_data(), VPaint::paint, blender::ed::sculpt_paint::paint_stroke_set_mode_data(), Object::sculpt, Scene::toolsettings, blender::ed::sculpt_paint::vwpaint::update_cache_invariants(), vertex_paint_init_stroke(), ToolSettings::vpaint, and vpaint_init_vpaint().
Referenced by vpaint_exec(), and vpaint_invoke().
|
static |
Definition at line 2045 of file paint_vertex.cc.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_paint_brush(), C, SculptSession::cache, VPaintData::color_curr, VPaintData::color_prev, CTX_data_tool_settings(), Object::data, DEG_id_tag_update(), ED_region_tag_redraw(), ED_view3d_init_mats_rv3d(), ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::vwpaint::last_stroke_update(), blender::ed::sculpt_paint::StrokeCache::location, mul_m4_m4m4(), mul_v3_m4v3(), ViewContext::obact, VPaint::paint, blender::ed::sculpt_paint::paint_stroke_distance_get(), blender::ed::sculpt_paint::paint_stroke_mode_data(), RegionView3D::persmat, ViewContext::region, ViewContext::rv3d, Object::sculpt, VPaintData::smear, blender::ed::sculpt_paint::StrokeCache::stroke_distance, swap_m4m4(), blender::ed::sculpt_paint::vwpaint::update_cache_variants(), VPaintData::vc, Brush::vertex_brush_type, ToolSettings::vpaint, VPAINT_BRUSH_TYPE_SMEAR, and vpaint_do_symmetrical_brush_actions().
Referenced by vpaint_exec(), and vpaint_invoke().
|
static |
Definition at line 82 of file paint_vertex.cc.