|
Blender V4.3
|
Functions to paint images in 2D and 3D. More...
#include <cfloat>#include <cmath>#include <cstdio>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_math_vector.hh"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "DNA_brush_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_node_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BKE_brush.hh"#include "BKE_colorband.hh"#include "BKE_context.hh"#include "BKE_curves.hh"#include "BKE_grease_pencil.hh"#include "BKE_image.hh"#include "BKE_main.hh"#include "BKE_material.h"#include "BKE_mesh.hh"#include "BKE_node_runtime.hh"#include "BKE_object.hh"#include "BKE_paint.hh"#include "BKE_scene.hh"#include "NOD_texture.h"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "UI_interface.hh"#include "UI_view2d.hh"#include "ED_grease_pencil.hh"#include "ED_image.hh"#include "ED_object.hh"#include "ED_paint.hh"#include "ED_screen.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_toolsystem.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "IMB_colormanagement.hh"#include "paint_intern.hh"Go to the source code of this file.
Classes | |
| struct | GrabClone |
| struct | SampleColorData |
Image Paint Tile Utilities (Partial Update) | |
| static ImagePaintPartialRedraw | imapaintpartial = {{0}} |
| ImagePaintPartialRedraw * | get_imapaintpartial () |
| void | set_imapaintpartial (ImagePaintPartialRedraw *ippr) |
| void | ED_imapaint_clear_partial_redraw () |
| void | imapaint_region_tiles (ImBuf *ibuf, int x, int y, int w, int h, int *tx, int *ty, int *tw, int *th) |
| void | ED_imapaint_dirty_region (Image *ima, ImBuf *ibuf, ImageUser *iuser, int x, int y, int w, int h, bool find_old) |
| void | imapaint_image_update (SpaceImage *sima, Image *image, ImBuf *ibuf, ImageUser *iuser, short texpaint) |
Functions to paint images in 2D and 3D.
Definition in file paint_image.cc.
|
static |
Definition at line 1031 of file paint_image.cc.
References BKE_brush_tag_unsaved_changes(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paint_use_unified_color(), CTX_data_scene(), NA_EDITED, NC_BRUSH, OPERATOR_CANCELLED, OPERATOR_FINISHED, Brush::rgb, UnifiedPaintSettings::rgb, Brush::secondary_rgb, UnifiedPaintSettings::secondary_rgb, swap_v3_v3(), and WM_event_add_notifier().
Referenced by PAINT_OT_brush_colors_flip().
|
static |
Definition at line 1055 of file paint_image.cc.
References CTX_data_active_object(), ED_image_tools_paint_poll(), ELEM, blender::ed::greasepencil::grease_pencil_painting_poll(), blender::ed::greasepencil::grease_pencil_vertex_painting_poll(), Brush::image_brush_type, image_paint_brush(), IMAGE_PAINT_BRUSH_TYPE_DRAW, IMAGE_PAINT_BRUSH_TYPE_FILL, Object::mode, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, and OB_MODE_VERTEX_PAINT.
Referenced by PAINT_OT_brush_colors_flip().
| bool ED_image_tools_paint_poll | ( | bContext * | C | ) |
Definition at line 317 of file paint_image.cc.
References image_paint_poll_ex().
Referenced by brush_colors_flip_poll(), ED_space_image_paint_update(), image_listener(), image_paint_2d_clone_poll(), image_texture_paint_poll(), PAINT_OT_image_paint(), blender::ed::sculpt_paint::image::ops::paint::texture_paint_init(), and toggle_paint_cursor().
| void ED_imapaint_bucket_fill | ( | bContext * | C, |
| float const | color[3], | ||
| wmOperator * | op, | ||
| const int | mouse[2] ) |
Definition at line 1100 of file paint_image.cc.
References CTX_wm_space_image(), DEG_id_tag_update(), ED_image_undo_push_begin(), ED_image_undo_push_end(), float, Image::id, SpaceImage::image, wmOperatorType::name, paint_2d_bucket_fill(), Texture2D, and wmOperator::type.
Referenced by drop_color_invoke().
| void ED_imapaint_clear_partial_redraw | ( | ) |
Definition at line 96 of file paint_image.cc.
References BLI_rcti_init_minmax(), ImagePaintPartialRedraw::dirty_region, and imapaintpartial.
Referenced by image_flip_exec(), image_invert_exec(), image_rotate_orthogonal_exec(), image_scale_exec(), paint_2d_bucket_fill(), paint_2d_gradient_fill(), and paint_2d_redraw().
| void ED_imapaint_dirty_region | ( | Image * | ima, |
| ImBuf * | ibuf, | ||
| ImageUser * | iuser, | ||
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| bool | find_old ) |
Definition at line 114 of file paint_image.cc.
References BKE_image_mark_dirty(), BLI_rcti_do_minmax_rcti(), BLI_rcti_init(), ImagePaintPartialRedraw::dirty_region, ED_image_paint_tile_map_get(), ED_image_paint_tile_push(), imapaint_region_tiles(), imapaintpartial, IMB_freeImBuf(), IMB_rectclip(), and w().
Referenced by paint_2d_bucket_fill(), paint_2d_gradient_fill(), and paint_2d_op().
| void ED_object_texture_paint_mode_enter | ( | bContext * | C | ) |
Definition at line 932 of file paint_image.cc.
References CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), depsgraph, and ED_object_texture_paint_mode_enter_ex().
| void ED_object_texture_paint_mode_enter_ex | ( | Main & | bmain, |
| Scene & | scene, | ||
| Depsgraph & | depsgraph, | ||
| Object & | ob ) |
Definition at line 874 of file paint_image.cc.
References Object::actcol, BKE_image_free_all_gputextures(), BKE_image_paint_set_mipmap(), BKE_mesh_from_object(), BKE_object_material_get(), BKE_paint_brushes_validate(), BKE_paint_init(), BKE_scene_graph_evaluated_ensure(), BKE_texpaint_slots_refresh_object(), BLI_assert, ImagePaintSettings::canvas, DEG_get_evaluated_object(), DEG_id_tag_update(), depsgraph, ED_paint_proj_mesh_data_check(), ED_space_image_sync(), ID_RECALC_SYNC_TO_EVAL, TexPaintSlot::ima, IMAGEPAINT_MODE_IMAGE, IMAGEPAINT_MODE_MATERIAL, ImagePaintSettings::mode, Object::mode, NC_SCENE, ND_MODE, OB_MODE_TEXTURE_PAINT, ImagePaintSettings::paint, Material::paint_active_slot, PAINT_CURSOR_TEXTURE_PAINT, paint_init_pivot(), scene, Material::texpaintslot, Texture3D, toggle_paint_cursor(), and WM_main_add_notifier().
Referenced by ED_object_texture_paint_mode_enter(), and texture_paint_toggle_exec().
| void ED_object_texture_paint_mode_exit | ( | bContext * | C | ) |
Definition at line 958 of file paint_image.cc.
References CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), and ED_object_texture_paint_mode_exit_ex().
Definition at line 942 of file paint_image.cc.
References BKE_image_free_all_gputextures(), BKE_image_paint_set_mipmap(), BKE_mesh_from_object(), BLI_assert, DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, Object::mode, NC_SCENE, ND_MODE, toggle_paint_cursor(), and WM_main_add_notifier().
Referenced by blender::ed::object::ed_object_mode_generic_exit_ex(), ED_object_texture_paint_mode_exit(), and texture_paint_toggle_exec().
| void ED_space_image_paint_update | ( | Main * | bmain, |
| wmWindowManager * | wm, | ||
| Scene * | scene ) |
Enable the paint cursor if it isn't already.
purpose is to make sure the paint cursor is shown if paint mode is enabled in the image editor. The paint poll will ensure that the cursor is hidden when not in paint mode.
Definition at line 476 of file paint_image.cc.
References BKE_paint_init(), ED_image_tools_paint_poll(), ED_paint_cursor_start(), LISTBASE_FOREACH, ImagePaintSettings::paint, paint_cursor_delete_textures(), PAINT_CURSOR_TEXTURE_PAINT, SI_MODE_PAINT, SPACE_IMAGE, Texture2D, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by ED_editors_init().
| bool facemask_paint_poll | ( | bContext * | C | ) |
Definition at line 1134 of file paint_image.cc.
References BKE_paint_select_face_test(), 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 438 of file paint_image.cc.
References CTX_wm_area(), CTX_wm_region(), ED_space_image_get_zoom(), SpaceImage::mode, SI_MODE_PAINT, and SPACE_IMAGE.
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init(), and blender::ed::sculpt_paint::paint_stroke_new().
| ImagePaintPartialRedraw * get_imapaintpartial | ( | ) |
Definition at line 84 of file paint_image.cc.
References imapaintpartial.
|
static |
Definition at line 515 of file paint_image.cc.
References add_v2_v2(), BKE_brush_tag_unsaved_changes(), Brush::clone, CTX_wm_region(), ED_region_tag_redraw(), image_paint_brush(), BrushClone::offset, wmOperator::ptr, and RNA_float_get_array().
Referenced by grab_clone_exec(), and grab_clone_modal().
|
static |
Definition at line 583 of file paint_image.cc.
References wmOperator::customdata.
Referenced by PAINT_OT_grab_clone().
|
static |
Definition at line 526 of file paint_image.cc.
References grab_clone_apply(), and OPERATOR_FINISHED.
Referenced by PAINT_OT_grab_clone().
|
static |
Definition at line 533 of file paint_image.cc.
References Brush::clone, copy_v2_v2(), wmOperator::customdata, image_paint_brush(), BrushClone::offset, OPERATOR_RUNNING_MODAL, GrabClone::startoffset, GrabClone::startx, GrabClone::starty, and WM_event_add_modal_handler().
Referenced by PAINT_OT_grab_clone().
|
static |
Definition at line 549 of file paint_image.cc.
References BKE_brush_tag_unsaved_changes(), Brush::clone, copy_v2_v2(), CTX_wm_region(), wmOperator::customdata, grab_clone_apply(), image_paint_brush(), LEFTMOUSE, MEM_freeN(), MIDDLEMOUSE, MOUSEMOVE, BrushClone::offset, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_float_set_array(), GrabClone::startoffset, GrabClone::startx, GrabClone::starty, wmEvent::type, UI_view2d_region_to_view(), and wmEvent::xy.
Referenced by PAINT_OT_grab_clone().
|
static |
Definition at line 327 of file paint_image.cc.
References Brush::clone, CTX_wm_region_view3d(), ED_image_tools_paint_poll(), BrushClone::image, Brush::image_brush_type, image_paint_brush(), and IMAGE_PAINT_BRUSH_TYPE_CLONE.
Referenced by PAINT_OT_grab_clone().
Definition at line 274 of file paint_image.cc.
References BKE_paint_brush(), and CTX_data_scene().
Referenced by brush_colors_flip_poll(), grab_clone_apply(), grab_clone_invoke(), grab_clone_modal(), image_paint_2d_clone_poll(), and image_paint_poll_ex().
|
static |
Definition at line 282 of file paint_image.cc.
References CTX_data_active_object(), CTX_wm_region(), CTX_wm_region_view3d(), CTX_wm_space_image(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, SpaceImage::image, image_paint_brush(), Object::mode, SpaceImage::mode, OB_MODE_TEXTURE_PAINT, RGN_TYPE_WINDOW, SI_MODE_PAINT, and WM_toolsystem_active_tool_is_brush().
Referenced by ED_image_tools_paint_poll(), and image_paint_poll_ignore_tool().
|
static |
Definition at line 322 of file paint_image.cc.
References image_paint_poll_ex().
Referenced by sample_color_poll().
| bool image_texture_paint_poll | ( | bContext * | C | ) |
Definition at line 1129 of file paint_image.cc.
References 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 149 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(), ImagePaintPartialRedraw::dirty_region, IB_MIPMAP_INVALID, imapaintpartial, IMB_partial_display_buffer_update_delayed(), SpaceImage::lock, ImBuf::mipmap, ImBuf::planes, ImBuf::userflags, w(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
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 101 of file paint_image.cc.
References ED_IMAGE_UNDO_TILE_BITS, IMB_rectclip(), and w().
Referenced by ED_imapaint_dirty_region(), and paint_2d_op().
| bool mask_paint_poll | ( | bContext * | C | ) |
Definition at line 1144 of file paint_image.cc.
References BKE_paint_select_elem_test(), and CTX_data_active_object().
| void paint_brush_color_get | ( | Scene * | scene, |
| const Paint * | paint, | ||
| Brush * | br, | ||
| bool | color_correction, | ||
| bool | invert, | ||
| float | distance, | ||
| float | pressure, | ||
| ColorManagedDisplay * | display, | ||
| float | r_color[3] ) |
Definition at line 365 of file paint_image.cc.
References BKE_brush_color_get(), BKE_brush_secondary_color_get(), BKE_colorband_evaluate(), BRUSH_GRADIENT_PRESSURE, BRUSH_GRADIENT_SPACING_CLAMP, BRUSH_GRADIENT_SPACING_REPEAT, BRUSH_USE_GRADIENT, copy_v3_v3(), Brush::flag, fmod(), Brush::gradient, Brush::gradient_spacing, Brush::gradient_stroke_mode, IMB_colormanagement_display_to_scene_linear_v3(), IMB_colormanagement_scene_linear_to_srgb_v3(), and invert().
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 424 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 408 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().
| void paint_delete_blur_kernel | ( | BlurKernel * | kernel | ) |
Definition at line 261 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().
Initialize viewport pivot from evaluated bounding box center of ob.
Definition at line 846 of file paint_image.cc.
References UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, BLI_assert_unreachable, copy_v3_v3(), UnifiedPaintSettings::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(), and Object::type.
Referenced by blender::ed::sculpt_paint::curves_sculptmode_enter(), and ED_object_texture_paint_mode_enter_ex().
|
static |
Definition at line 824 of file paint_image.cc.
References bounds(), Object::data, and blender::math::midpoint().
Referenced by paint_init_pivot().
|
static |
Definition at line 835 of file paint_image.cc.
References bounds(), Object::data, and blender::math::midpoint().
Referenced by paint_init_pivot().
|
static |
Definition at line 808 of file paint_image.cc.
References BKE_object_get_evaluated_mesh(), bounds(), Object::data, and blender::math::midpoint().
Referenced by paint_init_pivot().
| 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 192 of file paint_image.cc.
References Brush::blur_kernel_radius, Brush::blur_mode, exp(), KERNEL_BOX, KERNEL_GAUSSIAN, MEM_mallocN, 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_brush_colors_flip | ( | wmOperatorType * | ot | ) |
Definition at line 1079 of file paint_image.cc.
References brush_colors_flip_exec(), brush_colors_flip_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_grab_clone | ( | wmOperatorType * | ot | ) |
Definition at line 589 of file paint_image.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, grab_clone_cancel(), grab_clone_exec(), grab_clone_invoke(), grab_clone_modal(), wmOperatorType::idname, image_paint_2d_clone_poll(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_sample_color | ( | wmOperatorType * | ot | ) |
Definition at line 775 of file paint_image.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, wmOperatorType::poll, 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(), sample_color_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_texture_paint_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1010 of file paint_image.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, texture_paint_toggle_exec(), and texture_paint_toggle_poll().
Referenced by ED_operatortypes_paint().
| bool paint_use_opacity_masking | ( | Brush * | brush | ) |
Definition at line 348 of file paint_image.cc.
References 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().
|
static |
Definition at line 647 of file paint_image.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), CTX_wm_region(), CTX_wm_window(), Paint::flags, NA_EDITED, NC_BRUSH, OPERATOR_FINISHED, paint_sample_color(), PAINT_SHOW_BRUSH, wmOperator::ptr, RNA_boolean_get(), RNA_int_get_array(), Texture3D, WM_event_add_notifier(), WM_paint_cursor_tag_redraw(), and WM_redraw_windows().
Referenced by PAINT_OT_sample_color().
|
static |
Definition at line 678 of file paint_image.cc.
References BKE_brush_color_get(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), copy_v3_v3(), CTX_data_scene(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, data, Paint::flags, wmEvent::mval, NA_EDITED, NC_BRUSH, OPERATOR_RUNNING_MODAL, paint_sample_color(), PAINT_SHOW_BRUSH, wmOperator::ptr, RNA_boolean_get(), RNA_int_set_array(), sample_color_update_header(), Texture3D, wmEvent::type, WM_CURSOR_EYEDROPPER, WM_cursor_modal_set(), WM_event_add_modal_handler(), WM_event_add_notifier(), WM_paint_cursor_tag_redraw(), WM_redraw_windows(), and WM_userdef_event_type_from_keymap_type().
Referenced by PAINT_OT_sample_color().
|
static |
Definition at line 716 of file paint_image.cc.
References BKE_brush_color_set(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), CTX_data_scene(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, ED_workspace_status_text(), Paint::flags, KM_PRESS, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, wmEvent::mval, NA_EDITED, NC_BRUSH, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, paint_sample_color(), PAINT_SHOW_BRUSH, wmOperator::ptr, RNA_boolean_get(), RNA_boolean_set(), RNA_int_set_array(), sample_color_update_header(), Texture3D, wmEvent::type, wmEvent::val, WM_cursor_modal_restore(), and WM_event_add_notifier().
Referenced by PAINT_OT_sample_color().
|
static |
Definition at line 769 of file paint_image.cc.
References blender::ed::greasepencil::grease_pencil_painting_poll(), image_paint_poll_ignore_tool(), and vertex_paint_poll_ignore_tool().
Referenced by PAINT_OT_sample_color().
|
static |
Definition at line 632 of file paint_image.cc.
References CTX_wm_area(), ED_workspace_status_text(), IFACE_, SNPRINTF, and UI_MAX_DRAW_STR.
Referenced by sample_color_invoke(), and sample_color_modal().
| void set_imapaintpartial | ( | ImagePaintPartialRedraw * | ippr | ) |
Definition at line 89 of file paint_image.cc.
References imapaintpartial.
Referenced by project_image_refresh_tagged().
|
static |
Definition at line 1118 of file paint_image.cc.
References CTX_data_active_object(), OB_MODE_TEXTURE_PAINT, and texture_paint_toggle_poll().
Referenced by image_texture_paint_poll().
|
static |
Definition at line 979 of file paint_image.cc.
References CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_wm_message_bus(), depsgraph, ED_object_texture_paint_mode_enter_ex(), ED_object_texture_paint_mode_exit_ex(), Object::id, Object::mode, OB_MODE_TEXTURE_PAINT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by PAINT_OT_texture_paint_toggle().
|
static |
Definition at line 966 of file paint_image.cc.
References CTX_data_active_object(), Object::data, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, OB_MESH, and Object::type.
Referenced by PAINT_OT_texture_paint_toggle(), and texture_paint_poll().
|
static |
Definition at line 461 of file paint_image.cc.
References ED_image_tools_paint_poll(), ED_paint_cursor_start(), Paint::paint_cursor, paint_cursor_delete_textures(), and WM_paint_cursor_end().
Referenced by ED_object_texture_paint_mode_enter_ex(), and ED_object_texture_paint_mode_exit_ex().
| bool vert_paint_poll | ( | bContext * | C | ) |
Definition at line 1139 of file paint_image.cc.
References BKE_paint_select_vert_test(), 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().
|
static |
This is a static resource for non-global access. Maybe it should be exposed as part of the paint operation, but for now just give a public interface.
Definition at line 82 of file paint_image.cc.
Referenced by ED_imapaint_clear_partial_redraw(), ED_imapaint_dirty_region(), get_imapaintpartial(), imapaint_image_update(), and set_imapaintpartial().