|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "CLG_log.h"#include "BLI_array_utils.h"#include "BLI_color.hh"#include "BLI_color_mix.hh"#include "BLI_enumerable_thread_specific.hh"#include "BLI_listbase.h"#include "BLI_math_geom.h"#include "BLI_math_matrix.hh"#include "BLI_math_rotation.h"#include "BLI_rect.h"#include "BLI_string.h"#include "BLI_task.h"#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_lib_id.hh"#include "BKE_mesh.hh"#include "BKE_object.hh"#include "BKE_object_deform.h"#include "BKE_object_types.hh"#include "BKE_paint.hh"#include "BKE_report.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 "BKE_ccg.hh"#include "bmesh.hh"#include "mesh_brush_common.hh"#include "paint_intern.hh"#include "sculpt_automask.hh"#include "sculpt_boundary.hh"#include "sculpt_cloth.hh"#include "sculpt_intern.hh"#include "sculpt_pose.hh"#include "sculpt_undo.hh"Go to the source code of this file.
Classes | |
| struct | VPaintAverageAccum< BlendType > |
| struct | VPaintData |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::sculpt_paint |
| namespace | blender::ed::sculpt_paint::vwpaint |
Variables | |
| static CLG_LogRef | LOG = {"ed.sculpt_paint"} |
Used for vertex color & weight paint and mode switching.
paint_vertex_color_ops.cc & paint_vertex_weight_ops.cc for general purpose operators. Definition in file paint_vertex.cc.
|
static |
Definition at line 1538 of file paint_vertex.cc.
References blend, SculptSession::cache, depsgraph, ViewContext::depsgraph, blender::ed::sculpt_paint::LocalData::distances, blender::ed::sculpt_paint::LocalData::factors, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::paintcol, Object::sculpt, sqrtf, to_static_color_type(), toFloat(), VPaintData::type, VPaintData::vc, and blender::bke::pbvh::vert_positions_eval().
Referenced by vpaint_paint_leaves().
|
static |
Definition at line 1037 of file paint_vertex.cc.
References Blend, blend, blender::ed::sculpt_paint::StrokeCache::brush, brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), col, CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, dot_v3v3(), blender::bke::mesh::face_find_corner_from_vert(), blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data(), blender::Span< T >::is_empty(), isZero(), blender::threading::EnumerableThreadSpecific< T >::local(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::normal_angle_precalc, VPaintData::prev_colors, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), 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 1192 of file paint_vertex.cc.
References Blend, blend, blender::ed::sculpt_paint::StrokeCache::brush, brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), col, CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, dot_v3v3(), blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data(), blender::Span< T >::is_empty(), isZero(), blender::threading::EnumerableThreadSpecific< T >::local(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::normal_angle_precalc, VPaintData::prev_colors, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), 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 1338 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::brush, brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), VPaintData::color_curr, VPaintData::color_prev, CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, VPaintData::domain, dot_v3v3(), blender::bke::mesh::face_find_corner_from_vert(), blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data(), 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, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::normal_angle_precalc, normalize_v3(), VPaintData::prev_colors, project_plane_v3_v3v3(), blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), 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 765 of file paint_vertex.cc.
References 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 761 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 783 of file paint_vertex.cc.
References CTX_data_active_object(), and ED_object_vpaintmode_exit_ex().
| void ED_object_vpaintmode_exit_ex | ( | Object & | ob | ) |
Definition at line 779 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 1024 of file paint_vertex.cc.
References BLI_assert, blender::MutableSpan< T >::size(), and verts.
Referenced by do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), and vpaint_do_draw().
|
static |
Definition at line 119 of file paint_vertex.cc.
References blender::ColorSceneLinear4f< Alpha >::encode().
Referenced by paint_and_tex_color_alpha().
|
static |
|
static |
|
static |
Definition at line 1647 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 722 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, ViewContext::scene, 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 2311 of file paint_vertex.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, vertex_color_set_exec(), and vertex_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_paint | ( | wmOperatorType * | ot | ) |
Definition at line 2104 of file paint_vertex.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), wmOperatorType::poll, 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 841 of file paint_vertex.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, blender::ed::sculpt_paint::vwpaint::mode_toggle_poll_test(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and vpaint_mode_toggle_exec().
Referenced by ED_operatortypes_paint().
|
static |
Definition at line 878 of file paint_vertex.cc.
References BLI_assert_unreachable, CD_PROP_BYTE_COLOR, and CD_PROP_COLOR.
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 109 of file paint_vertex.cc.
Referenced by calculate_average_color(), and paint_and_tex_color_alpha().
|
static |
Definition at line 2276 of file paint_vertex.cc.
References blender::bke::pbvh::all_leaf_nodes(), BKE_mesh_from_object(), 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, blender::ed::sculpt_paint::fill_active_color(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_nodes(), RNA_boolean_get(), blender::bke::pbvh::Tree::tag_attribute_changed(), vpaint_get_current_col(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_set().
|
static |
Definition at line 750 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 605 of file paint_vertex.cc.
References BKE_color_attribute_supported(), 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_smooth(), and vertex_paint_poll_ex().
| bool vertex_paint_poll | ( | bContext * | C | ) |
Definition at line 640 of file paint_vertex.cc.
References vertex_paint_poll_ex().
Referenced by blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), PAINT_OT_vertex_color_set(), and PAINT_OT_vertex_paint().
|
static |
Definition at line 624 of file paint_vertex.cc.
References BKE_paint_brush(), CTX_data_tool_settings(), CTX_wm_area(), CTX_wm_region(), RGN_TYPE_WINDOW, SPACE_VIEW3D, 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 645 of file paint_vertex.cc.
References vertex_paint_poll_ex().
Referenced by sample_color_poll().
|
static |
Definition at line 665 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(), 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_do_draw().
|
static |
Definition at line 2090 of file paint_vertex.cc.
References 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 1826 of file paint_vertex.cc.
References do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), and VPaintData::domain.
Referenced by vpaint_paint_leaves().
|
static |
Definition at line 1662 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::brush, brush_strength(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::Color, CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, blender::ed::sculpt_paint::LocalData::distances, VPaintData::domain, dot_v3v3(), blender::bke::mesh::face_find_corner_from_vert(), blender::ed::sculpt_paint::LocalData::factors, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), filter_factors_with_selection(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data(), blender::Span< T >::is_empty(), isZero(), blender::threading::EnumerableThreadSpecific< T >::local(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, VPaintData::normal_angle_precalc, VPaintData::prev_colors, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), Object::sculpt, SCULPT_brush_frontface_normal_from_falloff_shape(), 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_paint_leaves().
|
static |
Definition at line 1874 of file paint_vertex.cc.
References BLI_assert, SculptSession::cache, CTX_data_depsgraph_pointer(), depsgraph, VPaintData::domain, blender::bke::pbvh::Tree::nodes(), 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(), and vpaint_paint_leaves().
Referenced by vpaint_do_radial_symmetry(), and vpaint_do_symmetrical_brush_actions().
|
static |
Definition at line 1910 of file paint_vertex.cc.
References M_PI, VPaint::radial_symm, and vpaint_do_paint().
Referenced by vpaint_do_symmetrical_brush_actions().
|
static |
Definition at line 1927 of file paint_vertex.cc.
References BKE_paint_brush_for_read(), SculptSession::cache, copy_v3_v3(), Object::data, ELEM, blender::ed::sculpt_paint::StrokeCache::is_last_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 2074 of file paint_vertex.cc.
References wmOperator::customdata, OPERATOR_FINISHED, blender::ed::sculpt_paint::paint_stroke_exec(), blender::ed::sculpt_paint::paint_stroke_new(), SCULPT_stroke_get_location(), vpaint_stroke_done(), vpaint_stroke_test_start(), and vpaint_stroke_update_step().
Referenced by PAINT_OT_vertex_paint().
|
static |
Definition at line 650 of file paint_vertex.cc.
References BKE_brush_color_get(), BKE_brush_secondary_color_get(), BKE_paint_brush_for_read(), IMB_colormanagement_srgb_to_scene_linear_v3(), and VPaint::paint.
Referenced by vertex_color_set_exec(), and vpaint_init_vpaint().
|
static |
Definition at line 929 of file paint_vertex.cc.
References BRUSH_FRONTFACE_FALLOFF, BRUSH_STROKE_INVERT, blender::ed::sculpt_paint::vwpaint::brush_use_accumulate(), SculptSession::building_vp_handle, depsgraph, ED_view3d_viewcontext_init(), ED_vpaint_proj_handle_create(), Brush::falloff_angle, Brush::flag, Brush::mtex, wmOperator::ptr, RNA_enum_get(), Object::sculpt, MTex::tex, 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 2043 of file paint_vertex.cc.
References BLI_assert, CTX_data_active_object(), CTX_data_scene(), 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::undo::push_begin_ex(), SCULPT_stroke_get_location(), 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 2099 of file paint_vertex.cc.
References wmOperator::customdata, and blender::ed::sculpt_paint::paint_stroke_modal().
Referenced by PAINT_OT_vertex_paint().
|
static |
Definition at line 798 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(), 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, 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 1843 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::brush, SculptSession::cache, calculate_average_color(), CTX_data_depsgraph_pointer(), depsgraph, do_vpaint_brush_smear(), blender::ed::sculpt_paint::undo::push_nodes(), 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 2022 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::alt_smooth, SculptSession::cache, CTX_data_tool_settings(), NC_OBJECT, ND_DRAW, ViewContext::obact, VPaint::paint, blender::ed::sculpt_paint::paint_stroke_mode_data(), blender::ed::sculpt_paint::undo::push_end(), 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 986 of file paint_vertex.cc.
References BKE_color_attribute_supported(), BKE_mesh_from_object(), BKE_paint_brush(), 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, 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 1977 of file paint_vertex.cc.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_paint_brush(), SculptSession::cache, VPaintData::color_curr, VPaintData::color_prev, CTX_data_scene(), 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_mode_data(), RegionView3D::persmat, ViewContext::region, ViewContext::rv3d, Object::sculpt, VPaintData::smear, 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 93 of file paint_vertex.cc.