|
Blender V5.0
|
#include "BLI_index_mask_fwd.hh"#include "BLI_math_vector_types.hh"#include "BLI_span.hh"#include "DNA_object_enums.h"#include "DNA_scene_enums.h"#include "DNA_vec_types.h"#include "DNA_windowmanager_enums.h"#include <optional>Go to the source code of this file.
Classes | |
| class | blender::ed::sculpt_paint::PaintModeData |
| struct | WPaintVGroupIndex |
| struct | ImagePaintPartialRedraw |
| struct | CurveMaskCache |
| Caching structure for curve mask. More... | |
| struct | BlurKernel |
| struct | blender::ed::sculpt_paint::vwpaint::NormalAnglePrecalc |
Namespaces | |
| namespace | blender |
| namespace | blender::bke |
| namespace | blender::bke::pbvh |
| namespace | blender::ed |
| namespace | blender::ed::sculpt_paint |
| namespace | blender::ocio |
| namespace | blender::ed::sculpt_paint::vwpaint |
Macros | |
| #define | PAINT_CURVE_NUM_SEGMENTS 40 |
Typedefs | |
| using | blender::ed::sculpt_paint::StrokeGetLocation |
| using | blender::ed::sculpt_paint::StrokeTestStart = bool (*)(bContext *C, wmOperator *op, const float mouse[2]) |
| using | blender::ed::sculpt_paint::StrokeUpdateStep |
| using | blender::ed::sculpt_paint::StrokeRedraw = void (*)(const bContext *C, PaintStroke *stroke, bool final) |
| using | blender::ed::sculpt_paint::StrokeDone = void (*)(const bContext *C, PaintStroke *stroke) |
| using | VPaintTransform_Callback |
Enumerations | |
| enum | { WPAINT_GRADIENT_TYPE_LINEAR , WPAINT_GRADIENT_TYPE_RADIAL } |
| enum | eWPaintFlag { WPAINT_ENSURE_MIRROR = (1 << 0) } |
| enum | BrushStrokeMode { BRUSH_STROKE_NORMAL , BRUSH_STROKE_INVERT , BRUSH_STROKE_SMOOTH , BRUSH_STROKE_ERASE } |
| #define PAINT_CURVE_NUM_SEGMENTS 40 |
Definition at line 550 of file paint_intern.hh.
Referenced by blender::ed::sculpt_paint::paint_draw_curve_cursor(), and blender::ed::sculpt_paint::paint_stroke_curve_end().
| using VPaintTransform_Callback |
Definition at line 218 of file paint_intern.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| WPAINT_GRADIENT_TYPE_LINEAR | |
| WPAINT_GRADIENT_TYPE_RADIAL | |
Definition at line 226 of file paint_intern.hh.
| enum BrushStrokeMode |
| Enumerator | |
|---|---|
| BRUSH_STROKE_NORMAL | |
| BRUSH_STROKE_INVERT | |
| BRUSH_STROKE_SMOOTH | |
| BRUSH_STROKE_ERASE | |
Definition at line 514 of file paint_intern.hh.
| enum eWPaintFlag |
| Enumerator | |
|---|---|
| WPAINT_ENSURE_MIRROR | |
Definition at line 252 of file paint_intern.hh.
| void BRUSH_OT_curve_preset | ( | wmOperatorType * | ot | ) |
References ot.
| void BRUSH_OT_sculpt_curves_falloff_preset | ( | wmOperatorType * | ot | ) |
References col.
| VertProjHandle * ED_vpaint_proj_handle_create | ( | Depsgraph & | depsgraph, |
| Scene & | scene, | ||
| Object & | ob, | ||
| blender::Span< blender::float3 > & | r_vert_positions, | ||
| blender::Span< blender::float3 > & | r_vert_normals ) |
Definition at line 152 of file paint_vertex_proj.cc.
References Object::data, depsgraph, VertProjHandle::dists_sq, VertProjHandle::ob, Array< T, InlineBufferCapacity, Allocator >::reinitialize(), VertProjHandle::scene, VertProjHandle::use_update, VertProjHandle::vert_normals, VertProjHandle::vert_positions, Mesh::verts_num, and vpaint_proj_dm_map_cosnos_init().
Referenced by vpaint_init_vpaint().
| void ED_vpaint_proj_handle_free | ( | VertProjHandle * | vp_handle | ) |
Definition at line 194 of file paint_vertex_proj.cc.
Referenced by VPaintData::~VPaintData().
| void ED_vpaint_proj_handle_update | ( | Depsgraph * | depsgraph, |
| VertProjHandle * | vp_handle, | ||
| ARegion * | region, | ||
| const float | mval_fl[2] ) |
Definition at line 184 of file paint_vertex_proj.cc.
References depsgraph, VertProjHandle::use_update, and vpaint_proj_dm_map_cosnos_update().
| weight | Typically the current weight: MDeformWeight.weight |
Definition at line 267 of file paint_vertex_weight_utils.cc.
References IMB_BLEND_ADD, IMB_BLEND_COLORDODGE, IMB_BLEND_DARKEN, IMB_BLEND_DIFFERENCE, IMB_BLEND_EXCLUSION, IMB_BLEND_HARDLIGHT, IMB_BLEND_LIGHTEN, IMB_BLEND_MIX, IMB_BLEND_MUL, IMB_BLEND_OVERLAY, IMB_BLEND_SCREEN, IMB_BLEND_SOFTLIGHT, IMB_BLEND_SUB, wval_add(), wval_blend(), wval_colordodge(), wval_darken(), wval_difference(), wval_exclusion(), wval_hardlight(), wval_lighten(), wval_mul(), wval_overlay(), wval_screen(), wval_softlight(), and wval_sub().
Referenced by gradientVert_update(), and wpaint_blend().
| bool ED_wpaint_ensure_data | ( | bContext * | C, |
| ReportList * | reports, | ||
| eWPaintFlag | flag, | ||
| WPaintVGroupIndex * | vgroup_index ) |
Ensure we have data on wpaint start, add if needed.
Definition at line 43 of file paint_vertex_weight_utils.cc.
References WPaintVGroupIndex::active, BKE_mesh_from_object(), BKE_modifiers_is_deformed_by_armature(), BKE_object_defgroup_add(), BKE_object_defgroup_add_name(), BKE_object_defgroup_data_create(), BKE_object_defgroup_find_name(), BKE_object_defgroup_list(), BKE_object_is_in_editmode(), BKE_pose_channel_find_name(), BKE_report(), BLI_assert, BLI_findindex(), BLI_listbase_is_empty(), C, CTX_data_active_object(), CTX_data_main(), Object::data, DEG_relations_tag_update(), ED_wpaint_mirror_vgroup_ensure(), Mesh::faces_num, flag, Mesh::id, ME_USING_MIRROR_X_VERTEX_GROUPS, WPaintVGroupIndex::mirror, Bone::name, bPoseChannel::name, NC_GEOM, ND_DATA, Object::pose, RPT_WARNING, Mesh::vertex_group_active_index, WM_event_add_notifier(), and WPAINT_ENSURE_MIRROR.
Referenced by paint_weight_gradient_exec(), paint_weight_gradient_invoke(), weight_paint_set_exec(), and wpaint_stroke_test_start().
| int ED_wpaint_mirror_vgroup_ensure | ( | Object * | ob, |
| int | vgroup_active ) |
Return -1 when invalid.
Definition at line 125 of file paint_vertex_weight_utils.cc.
References BKE_object_defgroup_list(), BKE_object_defgroup_name_index(), BKE_object_defgroup_new(), BLI_findlink(), BLI_listbase_count(), BLI_string_flip_side_name(), MAXBONENAME, and bDeformGroup::name.
Referenced by ED_wpaint_ensure_data(), and weight_paint_set().
| bool facemask_paint_poll | ( | bContext * | C | ) |
Definition at line 970 of file paint_image.cc.
References BKE_paint_select_face_test(), C, and CTX_data_active_object().
Referenced by ED_keymap_paint(), PAINT_OT_face_select_all(), PAINT_OT_face_select_hide(), PAINT_OT_face_select_less(), PAINT_OT_face_select_linked(), PAINT_OT_face_select_linked_pick(), PAINT_OT_face_select_loop(), and PAINT_OT_face_select_more().
Definition at line 443 of file paint_image.cc.
References C, CTX_wm_area(), CTX_wm_region(), ED_space_image_get_zoom(), ListBase::first, SpaceImage::mode, SI_MODE_PAINT, SPACE_IMAGE, ScrArea::spacedata, and ScrArea::spacetype.
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init(), and blender::ed::sculpt_paint::paint_stroke_new().
| ImagePaintPartialRedraw * get_imapaintpartial | ( | ) |
Definition at line 86 of file paint_image.cc.
References imapaintpartial.
| bool image_paint_poll_ignore_tool | ( | bContext * | C | ) |
Definition at line 318 of file paint_image.cc.
References C, and image_paint_poll_ex().
Referenced by sample_color_poll().
| bool image_texture_paint_poll | ( | bContext * | C | ) |
Definition at line 965 of file paint_image.cc.
References C, ED_image_tools_paint_poll(), and texture_paint_poll().
Referenced by ED_keymap_paint().
| void imapaint_image_update | ( | SpaceImage * | sima, |
| Image * | image, | ||
| ImBuf * | ibuf, | ||
| ImageUser * | iuser, | ||
| short | texpaint ) |
Definition at line 151 of file paint_image.cc.
References BKE_image_partial_update_mark_full_update(), BKE_image_update_gputexture(), BLI_rcti_is_empty(), BLI_rcti_size_x(), BLI_rcti_size_y(), imapaintpartial, IMB_partial_display_buffer_update_delayed(), SpaceImage::lock, ImBuf::planes, and w().
Referenced by paint_2d_bucket_fill(), paint_2d_gradient_fill(), paint_2d_redraw(), and project_image_refresh_tagged().
| void imapaint_region_tiles | ( | ImBuf * | ibuf, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int * | tx, | ||
| int * | ty, | ||
| int * | tw, | ||
| int * | th ) |
Definition at line 103 of file paint_image.cc.
References ED_IMAGE_UNDO_TILE_BITS, IMB_rectclip(), w(), x, and y.
Referenced by ED_imapaint_dirty_region(), and paint_2d_op().
| bool mask_paint_poll | ( | bContext * | C | ) |
Definition at line 980 of file paint_image.cc.
References BKE_paint_select_elem_test(), C, and CTX_data_active_object().
| void paint_2d_bucket_fill | ( | const bContext * | C, |
| const float | color[3], | ||
| Brush * | br, | ||
| const float | mouse_init[2], | ||
| const float | mouse_final[2], | ||
| void * | ps ) |
This function expects sRGB space color values.
Definition at line 1823 of file paint_image_2d.cc.
References BKE_brush_alpha_get(), BKE_image_acquire_ibuf(), BKE_image_get_tile_from_pos(), BKE_image_release_ibuf(), BKE_imageuser_default(), BKE_paint_get_active_from_context(), Brush::blend, blend_color_mix_byte(), blend_color_mix_float(), BLI_BITMAP_NEW, BLI_BITMAP_SET, BLI_stack_free(), BLI_stack_is_empty(), BLI_stack_new, BLI_stack_pop(), BLI_stack_push(), ImBuf::byte_buffer, C, ImBufByteBuffer::colorspace, copy_v3_v3(), copy_v4_v4(), CTX_wm_region(), CTX_wm_space_image(), ImBufByteBuffer::data, ImBufFloatBuffer::data, ED_imapaint_clear_partial_redraw(), ED_imapaint_dirty_region(), Brush::fill_threshold, ImBuf::float_buffer, SpaceImage::image, image_init(), imapaint_image_update(), IMB_blend_color_byte(), IMB_blend_color_float(), IMB_colormanagement_scene_linear_to_colorspace_v3(), MEM_freeN(), NA_EDITED, NC_IMAGE, paint_2d_fill_add_pixel_byte(), paint_2d_fill_add_pixel_float(), paint_2d_get_tile_iuser(), paint_2d_transform_mouse(), rgb_float_to_uchar(), rgba_uchar_to_float(), straight_to_premul_v4(), ImageUser::tile, ARegion::v2d, ImagePaintState::v2d, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by ED_imapaint_bucket_fill(), and blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_bucket_fill().
| void paint_2d_gradient_fill | ( | const bContext * | C, |
| Brush * | br, | ||
| const float | mouse_init[2], | ||
| const float | mouse_final[2], | ||
| void * | ps ) |
Definition at line 2025 of file paint_image_2d.cc.
References BKE_brush_alpha_get(), BKE_colorband_evaluate(), BKE_image_acquire_ibuf(), BKE_image_get_tile_from_pos(), BKE_image_release_ibuf(), Brush::blend, BRUSH_GRADIENT_LINEAR, BRUSH_GRADIENT_RADIAL, ImBuf::byte_buffer, C, ImBufByteBuffer::colorspace, CTX_wm_space_image(), ImBufByteBuffer::data, ImBufFloatBuffer::data, dot_v2v2(), ED_imapaint_clear_partial_redraw(), ED_imapaint_dirty_region(), ImBuf::float_buffer, Brush::gradient, Brush::gradient_fill_mode, SpaceImage::image, image_init(), imapaint_image_update(), IMB_blend_color_byte(), IMB_blend_color_float(), IMB_colormanagement_scene_linear_to_colorspace_v3(), len_squared_v2(), len_v2(), mul_v3_fl(), NA_EDITED, NC_IMAGE, ImagePaintState::paint, paint_2d_get_tile_iuser(), paint_2d_transform_mouse(), rgba_float_to_uchar(), sqrtf, sub_v2_v2(), sub_v2_v2v2(), ImagePaintState::v2d, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_gradient_fill().
| void * paint_2d_new_stroke | ( | bContext * | C, |
| wmOperator * | op, | ||
| int | mode ) |
Definition at line 1608 of file paint_image_2d.cc.
References BKE_image_acquire_ibuf(), BKE_image_has_packedfile(), BKE_image_release_ibuf(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_report(), Brush::blend, ImagePaintState::blend, BLI_listbase_count(), ImagePaintState::blurkernel, ImagePaintState::brush, brush_painter_2d_new(), BRUSH_STROKE_INVERT, ImagePaintState::brush_type, C, ImagePaintTile::canvas, ImBuf::channels, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_image(), ListBase::first, i, ImagePaintState::image, SpaceImage::image, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_SOFTEN, ToolSettings::imapaint, ImagePaintTile::iuser, SpaceImage::iuser, MEM_calloc_arrayN(), MEM_callocN(), MEM_freeN(), ImagePaintState::num_tiles, ImagePaintSettings::paint, ImagePaintState::paint, PAINT2D_TILE_READY, paint_2d_canvas_set(), paint_brush_init_tex(), paint_new_blur_kernel(), ImagePaintState::painter, ImagePaintTile::radius_fac, wmOperator::reports, RPT_WARNING, Image::rr, ImagePaintState::scene, ImagePaintState::sima, ImagePaintTile::size, ImagePaintTile::state, ImagePaintState::symmetry, Paint::symmetry_flags, ImageUser::tile, tile, Image::tiles, ImagePaintState::tiles, Scene::toolsettings, ImagePaintTile::uv_origin, ARegion::v2d, ImagePaintState::v2d, ImBuf::x, ImBuf::y, and zero_v2().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_new_stroke().
| void paint_2d_redraw | ( | const bContext * | C, |
| void * | ps, | ||
| bool | final ) |
Definition at line 1700 of file paint_image_2d.cc.
References BKE_image_acquire_ibuf(), BKE_image_free_gputextures(), BKE_image_release_ibuf(), C, CTX_wm_region(), DEG_id_tag_update(), ED_imapaint_clear_partial_redraw(), ED_region_tag_redraw(), i, Image::id, ImagePaintState::image, imapaint_image_update(), ImagePaintTile::iuser, SpaceImage::lock, NA_EDITED, NA_PAINTING, NC_IMAGE, ImagePaintTile::need_redraw, ImagePaintState::num_tiles, ImagePaintState::sima, ImagePaintState::tiles, and WM_event_add_notifier().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke_redraw().
| void paint_2d_stroke | ( | void * | ps, |
| const float | prev_mval[2], | ||
| const float | mval[2], | ||
| bool | eraser, | ||
| float | pressure, | ||
| float | distance, | ||
| float | base_size ) |
Definition at line 1505 of file paint_image_2d.cc.
References Brush::blend, ImagePaintState::blend, BrushPainter::brush, ImagePaintState::brush, brush_painter_2d_refresh_cache(), brush_painter_2d_require_imbuf(), ImBuf::byte_buffer, BrushPainter::cache_invert, ImBuf::colormanage_flag, ImBufByteBuffer::colorspace, copy_v2_v2(), ImBufFloatBuffer::data, distance(), BrushPainter::firsttouch, ImBuf::float_buffer, FLT_MAX, i, IMB_BLEND_ERASE_ALPHA, IMB_COLORMANAGE_IS_DATA, IMB_colormanagement_space_is_srgb(), is_inside_tile(), ImagePaintState::num_tiles, paint_2d_ensure_tile_canvas(), paint_2d_op(), paint_2d_uv_to_coord(), PAINT_TILE_X, PAINT_TILE_Y, ImagePaintState::painter, ImagePaintTile::size, size(), sub_v2_v2v2(), ImagePaintState::symmetry, tile, ImagePaintState::tiles, UI_view2d_region_to_view(), and ImagePaintState::v2d.
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke().
| void paint_2d_stroke_done | ( | void * | ps | ) |
Definition at line 1739 of file paint_image_2d.cc.
References ImagePaintState::brush, brush_painter_cache_2d_free(), ImagePaintTile::cache, i, MEM_freeN(), ImagePaintState::num_tiles, paint_2d_canvas_free(), paint_brush_exit_tex(), ImagePaintState::painter, and ImagePaintState::tiles.
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke_done().
| void paint_brush_color_get | ( | const Paint * | paint, |
| Brush * | br, | ||
| std::optional< blender::float3 > & | initial_hsv_jitter, | ||
| bool | invert, | ||
| float | distance, | ||
| float | pressure, | ||
| float | r_color[3] ) |
Definition at line 365 of file paint_image.cc.
References BKE_brush_color_get(), BKE_brush_color_jitter_get_settings(), BKE_brush_secondary_color_get(), BKE_colorband_evaluate(), BKE_paint_randomize_color(), BRUSH_GRADIENT_PRESSURE, BRUSH_GRADIENT_SPACING_CLAMP, BRUSH_GRADIENT_SPACING_REPEAT, BRUSH_USE_GRADIENT, copy_v3_v3(), distance(), Brush::flag, fmod(), Brush::gradient, Brush::gradient_spacing, Brush::gradient_stroke_mode, invert(), linearrgb_to_srgb_v3_v3(), and srgb_to_linearrgb_v3_v3().
Referenced by brush_painter_imbuf_new(), brush_painter_imbuf_update(), and paint_proj_stroke_ps().
| void paint_brush_exit_tex | ( | Brush * | brush | ) |
Definition at line 429 of file paint_image.cc.
References Brush::mask_mtex, Brush::mtex, Tex::nodetree, ntreeTexEndExecTree(), bNodeTree::runtime, and MTex::tex.
Referenced by paint_2d_stroke_done(), and paint_proj_stroke_done().
| void paint_brush_init_tex | ( | Brush * | brush | ) |
Definition at line 413 of file paint_image.cc.
References Brush::mask_mtex, Brush::mtex, Tex::nodetree, ntreeTexBeginExecTree(), and MTex::tex.
Referenced by paint_2d_new_stroke(), and paint_proj_new_stroke().
| float paint_calc_object_space_radius | ( | const ViewContext & | vc, |
| const blender::float3 & | center, | ||
| float | pixel_radius ) |
Definition at line 95 of file paint_utils.cc.
References ED_view3d_calc_zfac(), ED_view3d_win_to_delta(), fabsf, len_v3(), mat4_to_scale(), mul_v3_m4v3(), ViewContext::obact, ViewContext::region, and ViewContext::rv3d.
Referenced by blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::object_space_radius_get(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_size(), blender::ed::sculpt_paint::sculpt_update_cache_variants(), blender::ed::sculpt_paint::vwpaint::update_cache_variants(), and blender::ed::sculpt_paint::update_modal_transform().
| bool paint_convert_bb_to_rect | ( | rcti * | rect, |
| const float | bb_min[3], | ||
| const float | bb_max[3], | ||
| const ARegion & | region, | ||
| const RegionView3D & | rv3d, | ||
| const Object & | ob ) |
Convert the object-space axis-aligned bounding box (expressed as its minimum and maximum corners) into a screen-space rectangle, returns zero if the result is empty.
Definition at line 52 of file paint_utils.cc.
References BLI_rcti_do_minmax_v(), BLI_rcti_init_minmax(), ED_view3d_ob_project_mat_get(), ED_view3d_project_float_v2_m4(), i, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by blender::ed::sculpt_paint::trim::calc_expand_factor().
| void paint_cursor_delete_textures | ( | ) |
Delete overlay cursor textures to preserve memory and invalidate all overlay flags.
Definition at line 110 of file paint_cursor.cc.
References BKE_paint_invalidate_overlay_all(), cursor_snap, GPU_texture_free(), primary_snap, and secondary_snap.
Referenced by ED_space_image_paint_update(), blender::ed::sculpt_paint::vwpaint::mode_exit_generic(), blender::ed::sculpt_paint::object_sculpt_mode_exit(), and toggle_paint_cursor().
| void paint_curve_mask_cache_free_data | ( | CurveMaskCache * | curve_mask_cache | ) |
Definition at line 166 of file paint_image_2d_curve_mask.cc.
References blender::ed::sculpt_paint::curve_mask_free(), and blender::ed::sculpt_paint::sampled_curve_free().
Referenced by brush_painter_cache_2d_free().
| void paint_curve_mask_cache_update | ( | CurveMaskCache * | curve_mask_cache, |
| const Brush * | brush, | ||
| int | diameter, | ||
| float | radius, | ||
| const float | cursor_position[2] ) |
Definition at line 172 of file paint_image_2d_curve_mask.cc.
References blender::ed::sculpt_paint::curve_mask_allocate(), blender::ed::sculpt_paint::curve_mask_free(), blender::ed::sculpt_paint::is_curve_mask_size_valid(), blender::ed::sculpt_paint::is_sampled_curve_valid(), blender::ed::sculpt_paint::update_curve_mask(), and blender::ed::sculpt_paint::update_sampled_curve().
Referenced by brush_painter_2d_refresh_cache().
| bool paint_curve_poll | ( | bContext * | C | ) |
Definition at line 46 of file paint_curve.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), BRUSH_CURVE, C, CTX_data_active_object(), CTX_wm_region_view3d(), CTX_wm_space_image(), Brush::flag, Object::mode, SpaceImage::mode, OB_MODE_ALL_PAINT, OB_MODE_SCULPT_CURVES, and SI_MODE_PAINT.
Referenced by ED_keymap_paint(), PAINTCURVE_OT_add_point(), PAINTCURVE_OT_cursor(), PAINTCURVE_OT_delete_point(), PAINTCURVE_OT_draw(), PAINTCURVE_OT_new(), PAINTCURVE_OT_select(), PAINTCURVE_OT_slide(), paintcurve_undosys_poll(), and paintcurve_undosys_step_encode().
| void paint_delete_blur_kernel | ( | BlurKernel * | kernel | ) |
Definition at line 257 of file paint_image.cc.
References MEM_freeN(), and BlurKernel::wdata.
Referenced by paint_2d_canvas_free(), paint_new_blur_kernel(), and project_paint_end().
| bool paint_get_tex_pixel | ( | const MTex * | mtex, |
| float | u, | ||
| float | v, | ||
| ImagePool * | pool, | ||
| int | thread, | ||
| float * | r_intensity, | ||
| float | r_rgba[4] ) |
Returns true when a color was sampled and false when a value was sampled.
Definition at line 114 of file paint_utils.cc.
References RE_texture_evaluate(), and v.
Referenced by blender::ed::sculpt_paint::load_tex_task_cb_ex(), and sculpt_apply_texture().
Initialize viewport pivot from evaluated bounding box center of ob.
Definition at line 676 of file paint_image.cc.
References blender::bke::PaintRuntime::average_stroke_accum, blender::bke::PaintRuntime::average_stroke_counter, BLI_assert_unreachable, RenderData::cfra, copy_v3_v3(), blender::bke::PaintRuntime::last_stroke_valid, mul_m4_v3(), OB_CURVES, OB_GREASE_PENCIL, OB_MESH, paint_init_pivot_curves(), paint_init_pivot_grease_pencil(), paint_init_pivot_mesh(), Scene::r, Paint::runtime, and Object::type.
Referenced by blender::ed::sculpt_paint::curves_sculptmode_enter(), and ED_object_texture_paint_mode_enter_ex().
| BlurKernel * paint_new_blur_kernel | ( | Brush * | br, |
| bool | proj ) |
Paint blur kernels. Projective painting enforces use of a 2x2 kernel due to lagging. Can be extended to other blur kernels later,
Definition at line 190 of file paint_image.cc.
References Brush::blur_kernel_radius, Brush::blur_mode, exp, i, KERNEL_BOX, KERNEL_GAUSSIAN, MEM_malloc_arrayN(), paint_delete_blur_kernel(), BlurKernel::pixel_len, printf, BlurKernel::side, BlurKernel::side_squared, and BlurKernel::wdata.
Referenced by paint_2d_new_stroke(), and project_state_init().
| void PAINT_OT_add_simple_uvs | ( | wmOperatorType * | ot | ) |
Definition at line 7072 of file paint_image_proj.cc.
References add_simple_uvs_exec(), add_simple_uvs_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_add_texture_paint_slot | ( | wmOperatorType * | ot | ) |
Definition at line 6960 of file paint_image_proj.cc.
References CD_PROP_COLOR, ED_operator_object_active_editable_mesh(), FLT_MAX, IMA_DEF_NAME, IMA_GENTYPE_BLANK, layer_type_items, MAX_NAME, OPTYPE_UNDO, ot, PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE, PAINT_CANVAS_SOURCE_IMAGE, blender::bke::Point, PROP_COLOR_GAMMA, PROP_HIDDEN, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_color(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_float_array_default(), RNA_def_property_subtype(), RNA_def_string(), rna_enum_color_attribute_domain_items, rna_enum_color_attribute_type_items, rna_enum_image_generated_type_items, texture_paint_add_texture_paint_slot_exec(), texture_paint_add_texture_paint_slot_invoke(), and texture_paint_add_texture_paint_slot_ui().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_brush_colors_flip | ( | wmOperatorType * | ot | ) |
Definition at line 909 of file paint_image.cc.
References brush_colors_flip_exec(), brush_colors_flip_poll(), OPTYPE_REGISTER, and ot.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 237 of file paint_utils.cc.
References face_select_all_exec(), facemask_paint_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_hide | ( | wmOperatorType * | ot | ) |
Definition at line 523 of file paint_utils.cc.
References face_select_hide_exec(), facemask_paint_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 298 of file paint_utils.cc.
References facemask_paint_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_select_less_exec(), and RNA_def_boolean().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 190 of file paint_utils.cc.
References facemask_paint_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and paint_select_linked_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 213 of file paint_utils.cc.
References facemask_paint_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_select_linked_pick_invoke(), and RNA_def_boolean().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_loop | ( | wmOperatorType * | ot | ) |
Definition at line 328 of file paint_utils.cc.
References facemask_paint_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintface_select_loop_invoke(), and RNA_def_boolean().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 267 of file paint_utils.cc.
References facemask_paint_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_select_more_exec(), and RNA_def_boolean().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_vert_reveal | ( | wmOperatorType * | ot | ) |
Definition at line 589 of file paint_utils.cc.
References face_vert_reveal_exec(), face_vert_reveal_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_grab_clone | ( | wmOperatorType * | ot | ) |
Definition at line 601 of file paint_image.cc.
References FLT_MAX, grab_clone_cancel(), grab_clone_exec(), grab_clone_invoke(), grab_clone_modal(), image_paint_2d_clone_poll(), OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_vector().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_image_from_view | ( | wmOperatorType * | ot | ) |
Definition at line 6412 of file paint_image_proj.cc.
References FILE_MAX, OPTYPE_REGISTER, ot, RNA_def_string_file_name(), texture_paint_image_from_view_exec(), and texture_paint_image_from_view_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_image_paint | ( | wmOperatorType * | ot | ) |
Definition at line 531 of file paint_image_ops_paint.cc.
References ED_image_tools_paint_poll(), OPTYPE_BLOCKING, ot, blender::ed::sculpt_paint::image::ops::paint::paint_cancel(), blender::ed::sculpt_paint::image::ops::paint::paint_exec(), blender::ed::sculpt_paint::image::ops::paint::paint_invoke(), blender::ed::sculpt_paint::image::ops::paint::paint_modal(), and paint_stroke_operator_properties().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_project_image | ( | wmOperatorType * | ot | ) |
Definition at line 6274 of file paint_image_proj.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_NULL_items, RNA_image_itemf(), texture_paint_camera_project_exec(), and WM_enum_search_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_sample_color | ( | wmOperatorType * | ot | ) |
Definition at line 489 of file paint_sample_color.cc.
References OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int_vector(), RNA_def_property_flag(), sample_color_exec(), sample_color_invoke(), sample_color_modal(), and sample_color_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_texture_paint_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 840 of file paint_image.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, texture_paint_toggle_exec(), and texture_paint_toggle_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 352 of file paint_utils.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, vert_paint_poll(), vert_select_all_exec(), and WM_operator_properties_select_all().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_hide | ( | wmOperatorType * | ot | ) |
Definition at line 547 of file paint_utils.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), vert_paint_poll(), and vert_select_hide_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 499 of file paint_utils.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintvert_select_less_exec(), RNA_def_boolean(), and vert_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 406 of file paint_utils.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintvert_select_linked_exec(), and vert_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 430 of file paint_utils.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintvert_select_linked_pick_invoke(), RNA_def_boolean(), and vert_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 466 of file paint_utils.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintvert_select_more_exec(), RNA_def_boolean(), and vert_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_ungrouped | ( | wmOperatorType * | ot | ) |
Definition at line 382 of file paint_utils.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), vert_paint_poll(), and vert_select_ungrouped_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_brightness_contrast | ( | wmOperatorType * | ot | ) |
Definition at line 369 of file paint_vertex_color_ops.cc.
References max, min, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), RNA_def_property_ui_range(), 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 138 of file paint_vertex_color_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 427 of file paint_vertex_color_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), 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 467 of file paint_vertex_color_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 507 of file paint_vertex_color_ops.cc.
References FLT_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), vertex_color_levels_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| 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_color_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 232 of file paint_vertex_color_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, vertex_color_smooth_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().
| void PAINT_OT_weight_from_bones | ( | wmOperatorType * | ot | ) |
Definition at line 126 of file paint_vertex_weight_ops.cc.
References ARM_GROUPS_AUTO, ARM_GROUPS_ENVELOPE, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), weight_from_bones_exec(), weight_from_bones_poll(), and WM_menu_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_gradient | ( | wmOperatorType * | ot | ) |
Definition at line 902 of file paint_vertex_weight_ops.cc.
References OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_weight_gradient_exec(), paint_weight_gradient_invoke(), paint_weight_gradient_modal(), PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), weight_paint_poll_ignore_tool(), WM_CURSOR_EDIT, WM_gesture_straightline_cancel(), WM_operator_properties_gesture_straightline(), WPAINT_GRADIENT_TYPE_LINEAR, and WPAINT_GRADIENT_TYPE_RADIAL.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_paint | ( | wmOperatorType * | ot | ) |
Definition at line 1950 of file paint_weight.cc.
References OPTYPE_BLOCKING, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), weight_paint_poll(), wpaint_cancel(), wpaint_exec(), wpaint_invoke(), and wpaint_modal().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_paint_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1670 of file paint_weight.cc.
References blender::ed::sculpt_paint::vwpaint::mode_toggle_poll_test(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wpaint_mode_toggle_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_sample | ( | wmOperatorType * | ot | ) |
Definition at line 275 of file paint_vertex_weight_ops.cc.
References OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, weight_paint_mode_poll(), and weight_sample_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_sample_group | ( | wmOperatorType * | ot | ) |
Definition at line 385 of file paint_vertex_weight_ops.cc.
References OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, weight_paint_mode_region_view3d_poll(), and weight_sample_group_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_set | ( | wmOperatorType * | ot | ) |
Definition at line 514 of file paint_vertex_weight_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, weight_paint_mode_poll(), and weight_paint_set_exec().
Referenced by ED_operatortypes_paint().
Definition at line 6003 of file paint_image_proj.cc.
References BKE_brush_color_jitter_get_settings(), BKE_brush_size_get(), BKE_brush_size_set(), BKE_mesh_from_object(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BLI_assert, ProjStrokeHandle::brush, BRUSH_STROKE_INVERT, ProjPaintState::brush_type, C, count_bits_i(), CTX_data_scene(), i, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_CLONE, IMAGE_PAINT_BRUSH_TYPE_FILL, ToolSettings::imapaint, ProjStrokeHandle::initial_hsv_jitter, ProjStrokeHandle::is_clone_cursor_pick, ProjPaintState::is_shared_user, ProjPaintState::mesh_eval, ProjPaintState::ob, ProjStrokeHandle::orig_brush_size, ImagePaintSettings::paint, ProjStrokeHandle::paint, paint_brush_init_tex(), paint_proj_begin_clone(), PAINT_SYMM_X, PAINT_SYMM_Y, PAINT_SYMM_Z, pow_i(), PROJ_PAINT_STATE_SHARED_MEMCPY, PROJ_SRC_VIEW, PROJ_SRC_VIEW_FILL, project_image_refresh_tagged(), project_paint_begin(), project_state_init(), ProjStrokeHandle::ps_views, ProjStrokeHandle::ps_views_tot, ProjStrokeHandle::scene, seed_hsv_jitter(), ProjPaintState::source, Mesh::symmetry, ProjStrokeHandle::symmetry_flags, Scene::toolsettings, U, view3d_operator_needs_gpu(), x, y, and z().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ProjectionPaintMode::paint_new_stroke().
| void paint_proj_redraw | ( | const bContext * | C, |
| void * | ps_handle_p, | ||
| bool | final ) |
Definition at line 6110 of file paint_image_proj.cc.
References C, CTX_wm_region(), ED_region_tag_redraw(), NA_EDITED, NC_IMAGE, ProjStrokeHandle::need_redraw, and WM_event_add_notifier().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ProjectionPaintMode::paint_stroke_redraw().
| void paint_proj_stroke | ( | const bContext * | C, |
| void * | ps_handle_p, | ||
| const float | prev_pos[2], | ||
| const float | pos[2], | ||
| bool | eraser, | ||
| float | pressure, | ||
| float | distance, | ||
| float | size ) |
Definition at line 5848 of file paint_image_proj.cc.
References C, CTX_data_ensure_evaluated_depsgraph(), CTX_wm_region(), CTX_wm_view3d(), Scene::cursor, DEG_id_tag_update(), depsgraph, distance(), ED_region_tag_redraw(), ED_view3d_autodist(), ED_view3d_depth_override(), i, Scene::id, ID_RECALC_SYNC_TO_EVAL, ProjStrokeHandle::is_clone_cursor_pick, View3DCursor::location, paint_proj_stroke_ps(), pos, ProjStrokeHandle::ps_views, ProjStrokeHandle::ps_views_tot, ProjStrokeHandle::scene, size(), V3D_DEPTH_NO_GPENCIL, and view3d_operator_needs_gpu().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ProjectionPaintMode::paint_stroke().
| void paint_proj_stroke_done | ( | void * | ps_handle_p | ) |
Definition at line 6130 of file paint_image_proj.cc.
References BKE_brush_size_set(), ProjStrokeHandle::brush, i, ProjStrokeHandle::is_clone_cursor_pick, ProjStrokeHandle::orig_brush_size, ProjStrokeHandle::paint, paint_brush_exit_tex(), PROJ_PAINT_STATE_SHARED_CLEAR, project_paint_end(), ProjStrokeHandle::ps_views, and ProjStrokeHandle::ps_views_tot.
Referenced by blender::ed::sculpt_paint::image::ops::paint::ProjectionPaintMode::paint_stroke_done().
| void paint_stroke_operator_properties | ( | wmOperatorType * | ot | ) |
Definition at line 139 of file paint_utils.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, BRUSH_STROKE_ERASE, BRUSH_STROKE_INVERT, BRUSH_STROKE_NORMAL, BRUSH_STROKE_SMOOTH, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_collection_runtime(), RNA_def_enum(), RNA_def_property_flag(), and RNA_def_property_translation_context().
Referenced by blender::ed::sculpt_paint::GREASE_PENCIL_OT_brush_stroke(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_sculpt_paint(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_vertex_brush_stroke(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_weight_brush_stroke(), PAINT_OT_image_paint(), PAINT_OT_vertex_paint(), PAINT_OT_weight_paint(), blender::ed::sculpt_paint::SCULPT_CURVES_OT_brush_stroke(), and blender::ed::sculpt_paint::SCULPT_OT_brush_stroke().
Definition at line 347 of file paint_image.cc.
References BKE_brush_color_jitter_get_settings(), BRUSH_AIRBRUSH, BRUSH_ANCHORED, BRUSH_DRAG_DOT, MTex::brush_map_mode, BRUSH_USE_GRADIENT, ELEM, Brush::flag, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_FILL, IMAGE_PAINT_BRUSH_TYPE_SMEAR, IMAGE_PAINT_BRUSH_TYPE_SOFTEN, Brush::mtex, MTEX_MAP_MODE_3D, MTEX_MAP_MODE_STENCIL, MTEX_MAP_MODE_TILED, and MTex::tex.
Referenced by paint_2d_canvas_set(), and project_state_init().
| void PAINTCURVE_OT_add_point | ( | wmOperatorType * | ot | ) |
Definition at line 274 of file paint_curve.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_add_point_exec(), paintcurve_add_point_invoke(), and RNA_def_int_vector().
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 761 of file paint_curve.cc.
References ot, paint_curve_poll(), and paintcurve_cursor_invoke().
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_delete_point | ( | wmOperatorType * | ot | ) |
Definition at line 367 of file paint_curve.cc.
References OPTYPE_UNDO, ot, paint_curve_poll(), and paintcurve_delete_point_exec().
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_draw | ( | wmOperatorType * | ot | ) |
Definition at line 716 of file paint_curve.cc.
References OPTYPE_UNDO, ot, paint_curve_poll(), and paintcurve_draw_exec().
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 173 of file paint_curve.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_curve_poll(), and paintcurve_new_exec().
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 513 of file paint_curve.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_select_point_exec(), paintcurve_select_point_invoke(), PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int_vector(), and RNA_def_property_flag().
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_slide | ( | wmOperatorType * | ot | ) |
Definition at line 661 of file paint_curve.cc.
References OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_slide_invoke(), paintcurve_slide_modal(), and RNA_def_boolean().
Referenced by ED_operatortypes_paint().
| void SCULPT_OT_uv_sculpt_grab | ( | wmOperatorType * | ot | ) |
Definition at line 980 of file sculpt_uv.cc.
References ED_operator_uvedit_space_image(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, register_common_props(), uv_sculpt_stroke_invoke(), and uv_sculpt_stroke_modal().
Referenced by ED_operatortypes_paint().
| void SCULPT_OT_uv_sculpt_pinch | ( | wmOperatorType * | ot | ) |
Definition at line 1032 of file sculpt_uv.cc.
References ED_operator_uvedit_space_image(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, register_common_props(), uv_sculpt_stroke_invoke(), and uv_sculpt_stroke_modal().
Referenced by ED_operatortypes_paint().
| void SCULPT_OT_uv_sculpt_relax | ( | wmOperatorType * | ot | ) |
Definition at line 995 of file sculpt_uv.cc.
References ED_operator_uvedit_space_image(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, register_common_props(), RNA_def_enum(), uv_sculpt_stroke_invoke(), and uv_sculpt_stroke_modal().
Referenced by ED_operatortypes_paint().
| void set_imapaintpartial | ( | ImagePaintPartialRedraw * | ippr | ) |
Definition at line 91 of file paint_image.cc.
References imapaintpartial.
Referenced by project_image_refresh_tagged().
| bool vert_paint_poll | ( | bContext * | C | ) |
Definition at line 975 of file paint_image.cc.
References BKE_paint_select_vert_test(), C, and CTX_data_active_object().
Referenced by ED_keymap_paint(), PAINT_OT_vert_select_all(), PAINT_OT_vert_select_hide(), PAINT_OT_vert_select_less(), PAINT_OT_vert_select_linked(), PAINT_OT_vert_select_linked_pick(), PAINT_OT_vert_select_more(), and PAINT_OT_vert_select_ungrouped().
| 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().
| 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().
| bool weight_paint_mode_poll | ( | bContext * | C | ) |
Definition at line 1578 of file paint_weight.cc.
References C, CTX_data_active_object(), Object::data, Object::mode, and OB_MODE_WEIGHT_PAINT.
Referenced by ED_keymap_paint(), PAINT_OT_weight_sample(), PAINT_OT_weight_set(), and weight_paint_mode_region_view3d_poll().
| bool weight_paint_mode_region_view3d_poll | ( | bContext * | C | ) |
Definition at line 1585 of file paint_weight.cc.
References C, ED_operator_region_view3d_active(), and weight_paint_mode_poll().
Referenced by PAINT_OT_weight_sample_group().
| bool weight_paint_poll | ( | bContext * | C | ) |
Definition at line 1609 of file paint_weight.cc.
References C, and weight_paint_poll_ex().
Referenced by blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), and PAINT_OT_weight_paint().
| bool weight_paint_poll_ignore_tool | ( | bContext * | C | ) |
Definition at line 1614 of file paint_weight.cc.
References C, and weight_paint_poll_ex().
Referenced by PAINT_OT_weight_gradient().