Blender V2.61 - r43446
|
Go to the source code of this file.
Definition in file paint_intern.h.
typedef enum BrushStrokeMode BrushStrokeMode |
typedef void(* StrokeDone)(struct bContext *C, struct PaintStroke *stroke) |
Definition at line 56 of file paint_intern.h.
typedef int(* StrokeGetLocation)(struct bContext *C, struct PaintStroke *stroke, float location[3], float mouse[2]) |
Definition at line 53 of file paint_intern.h.
typedef int(* StrokeTestStart)(struct bContext *C, struct wmOperator *op, struct wmEvent *event) |
Definition at line 54 of file paint_intern.h.
typedef void(* StrokeUpdateStep)(struct bContext *C, struct PaintStroke *stroke, struct PointerRNA *itemptr) |
Definition at line 55 of file paint_intern.h.
typedef void(* UndoFreeCb)(struct ListBase *lb) |
Definition at line 160 of file paint_intern.h.
typedef void(* UndoRestoreCb)(struct bContext *C, struct ListBase *lb) |
Definition at line 159 of file paint_intern.h.
enum BrushStrokeMode |
Definition at line 152 of file paint_intern.h.
void BRUSH_OT_curve_preset | ( | struct wmOperatorType * | ot | ) |
Definition at line 370 of file paint_utils.c.
References brush_curve_preset_exec(), brush_curve_preset_poll(), CURVE_PRESET_LINE, CURVE_PRESET_MAX, CURVE_PRESET_ROOT, CURVE_PRESET_ROUND, CURVE_PRESET_SHARP, CURVE_PRESET_SMOOTH, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
int facemask_paint_poll | ( | struct bContext * | C | ) |
Definition at line 5502 of file paint_image.c.
References CTX_data_active_object(), and paint_facesel_test().
Referenced by ED_keymap_paint(), PAINT_OT_face_select_all(), PAINT_OT_face_select_hide(), PAINT_OT_face_select_inverse(), PAINT_OT_face_select_linked(), PAINT_OT_face_select_linked_pick(), and PAINT_OT_face_select_reveal().
int image_texture_paint_poll | ( | struct bContext * | C | ) |
Definition at line 5497 of file paint_image.c.
References image_paint_poll(), and texture_paint_poll().
Referenced by ED_keymap_paint().
int imapaint_pick_face | ( | struct ViewContext * | vc, |
struct Mesh * | me, | ||
const int | mval[2], | ||
unsigned int * | index | ||
) |
* returns 0 if not found, otherwise 1 */
Definition at line 316 of file paint_utils.c.
References Mesh::totface, and view3d_sample_backbuf().
Referenced by imapaint_paint_stroke().
void imapaint_pick_uv | ( | struct Scene * | scene, |
struct Object * | ob, | ||
unsigned int | faceindex, | ||
const int | xy[2], | ||
float | uv[2] | ||
) |
Definition at line 250 of file paint_utils.c.
References CD_MASK_BAREMESH, CD_MTFACE, CD_ORIGINDEX, co, fabs(), DerivedMesh::getFace, DerivedMesh::getFaceDataArray, DerivedMesh::getNumFaces, DerivedMesh::getVert, imapaint_tri_weights(), mesh_get_derived_final(), p, DerivedMesh::release, MFace::v1, MFace::v2, MFace::v3, MFace::v4, and simple_enum_gen::w.
Referenced by imapaint_paint_stroke().
int mask_paint_poll | ( | struct bContext * | C | ) |
Definition at line 5512 of file paint_image.c.
References CTX_data_active_object(), paint_facesel_test(), and paint_vertsel_test().
Referenced by PAINT_OT_weight_set().
float paint_calc_object_space_radius | ( | struct ViewContext * | vc, |
const float | center[3], | ||
float | pixel_radius | ||
) |
Definition at line 155 of file paint_utils.c.
References ViewContext::ar, ED_view3d_win_to_delta(), fabsf, initgrabz(), len_v3(), mat4_to_scale(), mul_v3_m4v3(), ViewContext::obact, Object::obmat, and ViewContext::rv3d.
Referenced by paint_cursor_on_hit(), and sculpt_update_cache_variants().
void paint_calc_redraw_planes | ( | float | planes[4][4], |
const struct ARegion * | ar, | ||
struct RegionView3D * | rv3d, | ||
struct Object * | ob, | ||
const struct rcti * | screen_rect | ||
) |
Referenced by sculpt_get_redraw_planes().
int paint_convert_bb_to_rect | ( | struct rcti * | rect, |
const float | bb_min[3], | ||
const float | bb_max[3], | ||
const struct ARegion * | ar, | ||
struct RegionView3D * | rv3d, | ||
struct Object * | ob | ||
) |
Referenced by sculpt_get_redraw_rect().
Referenced by sculpt_toggle_mode(), set_vpaint(), and set_wpaint().
float paint_get_tex_pixel | ( | struct Brush * | br, |
float | u, | ||
float | v | ||
) |
Definition at line 176 of file paint_utils.c.
References co, Brush::mtex, multitex_ext(), NULL, TexResult::ta, TexResult::tb, MTex::tex, TEX_RGB, TexResult::tg, TexResult::tin, and TexResult::tr.
Referenced by load_tex(), and tex_strength().
void PAINT_OT_clone_cursor_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 5392 of file paint_image.c.
References wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, image_paint_3d_poll(), wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_float_vector(), set_clone_cursor_exec(), set_clone_cursor_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
void PAINT_OT_face_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 446 of file paint_utils.c.
References wmOperatorType::description, wmOperatorType::exec, face_select_all_exec(), facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_paint().
void PAINT_OT_face_select_hide | ( | struct wmOperatorType * | ot | ) |
Definition at line 533 of file paint_utils.c.
References wmOperatorType::description, wmOperatorType::exec, face_select_hide_exec(), facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
void PAINT_OT_face_select_inverse | ( | struct wmOperatorType * | ot | ) |
Definition at line 512 of file paint_utils.c.
References wmOperatorType::description, wmOperatorType::exec, face_select_inverse_exec(), facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
void PAINT_OT_face_select_linked | ( | struct wmOperatorType * | ot | ) |
Definition at line 402 of file paint_utils.c.
References wmOperatorType::description, wmOperatorType::exec, facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paint_select_linked_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
void PAINT_OT_face_select_linked_pick | ( | struct wmOperatorType * | ot | ) |
Definition at line 422 of file paint_utils.c.
References wmOperatorType::description, facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paint_select_linked_pick_invoke(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
void PAINT_OT_face_select_reveal | ( | struct wmOperatorType * | ot | ) |
Definition at line 555 of file paint_utils.c.
References wmOperatorType::description, wmOperatorType::exec, face_select_reveal_exec(), facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
void PAINT_OT_grab_clone | ( | struct wmOperatorType * | ot | ) |
Definition at line 5259 of file paint_image.c.
References wmOperatorType::cancel, 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, NULL, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
void PAINT_OT_image_from_view | ( | struct wmOperatorType * | ot | ) |
Definition at line 5698 of file paint_image.c.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, FILE_MAX, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, wmOperatorType::poll, RNA_def_string_file_name(), wmOperatorType::srna, and texture_paint_image_from_view_exec().
Referenced by ED_operatortypes_paint().
void PAINT_OT_image_paint | ( | struct wmOperatorType * | ot | ) |
Definition at line 5069 of file paint_image.c.
References wmOperatorType::cancel, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_paint_poll(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, paint_cancel(), paint_exec(), paint_invoke(), paint_modal(), wmOperatorType::poll, RNA_def_collection_runtime(), RNA_OperatorStrokeElement, and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
void PAINT_OT_project_image | ( | struct wmOperatorType * | ot | ) |
Definition at line 5617 of file paint_image.c.
References wmOperatorType::description, DummyRNA_NULL_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::prop, RNA_def_enum(), RNA_def_enum_funcs(), RNA_image_itemf(), wmOperatorType::srna, texture_paint_camera_project_exec(), and WM_enum_search_invoke().
Referenced by ED_operatortypes_paint().
void PAINT_OT_sample_color | ( | struct wmOperatorType * | ot | ) |
Definition at line 5341 of file paint_image.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_paint_sample_color_poll(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_int_vector(), sample_color_exec(), sample_color_invoke(), sample_color_modal(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
void PAINT_OT_texture_paint_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 5474 of file paint_image.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, texture_paint_toggle_exec(), and texture_paint_toggle_poll().
Referenced by ED_operatortypes_paint().
void PAINT_OT_vert_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 470 of file paint_utils.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, vert_paint_poll(), vert_select_all_exec(), and WM_operator_properties_select_all().
Referenced by ED_operatortypes_paint().
void PAINT_OT_vert_select_inverse | ( | struct wmOperatorType * | ot | ) |
Definition at line 492 of file paint_utils.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, vert_paint_poll(), and vert_select_inverse_exec().
Referenced by ED_operatortypes_paint().
void PAINT_OT_vertex_paint | ( | struct wmOperatorType * | ot | ) |
Definition at line 2678 of file paint_vertex.c.
References wmOperatorType::cancel, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, paint_stroke_modal(), wmOperatorType::poll, RNA_def_collection_runtime(), RNA_OperatorStrokeElement, wmOperatorType::srna, vertex_paint_poll(), vpaint_cancel(), and vpaint_invoke().
Referenced by ED_operatortypes_paint().
void PAINT_OT_vertex_paint_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 2455 of file paint_vertex.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paint_poll_test(), wmOperatorType::poll, and set_vpaint().
Referenced by ED_operatortypes_paint().
void PAINT_OT_weight_from_bones | ( | struct wmOperatorType * | ot | ) |
Definition at line 2722 of file paint_vertex.c.
References ARM_GROUPS_AUTO, ARM_GROUPS_ENVELOPE, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, weight_from_bones_exec(), weight_from_bones_poll(), and WM_menu_invoke().
Referenced by ED_operatortypes_paint().
void PAINT_OT_weight_paint | ( | struct wmOperatorType * | ot | ) |
Definition at line 2364 of file paint_vertex.c.
References wmOperatorType::cancel, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, paint_stroke_modal(), wmOperatorType::poll, RNA_def_collection_runtime(), RNA_OperatorStrokeElement, wmOperatorType::srna, weight_paint_poll(), wpaint_cancel(), and wpaint_invoke().
Referenced by ED_operatortypes_paint().
void PAINT_OT_weight_paint_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 1912 of file paint_vertex.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paint_poll_test(), wmOperatorType::poll, and set_wpaint().
Referenced by ED_operatortypes_paint().
void PAINT_OT_weight_sample | ( | struct wmOperatorType * | ot | ) |
Definition at line 951 of file paint_vertex.c.
References wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, weight_paint_mode_poll(), and weight_sample_invoke().
Referenced by ED_operatortypes_paint().
void PAINT_OT_weight_sample_group | ( | struct wmOperatorType * | ot | ) |
Definition at line 1050 of file paint_vertex.c.
References DummyRNA_DEFAULT_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_enum_funcs(), wmOperatorType::srna, weight_paint_mode_poll(), weight_paint_sample_enum_itemf(), weight_sample_group_exec(), and WM_menu_invoke().
Referenced by ED_operatortypes_paint().
void PAINT_OT_weight_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 2394 of file paint_vertex.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_paint_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and weight_paint_set_exec().
Referenced by ED_operatortypes_paint().
int paint_poll | ( | struct bContext * | C | ) |
Definition at line 970 of file paint_stroke.c.
References CTX_data_active_object(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), p, paint_brush(), paint_get_active(), ARegion::regiontype, RGN_TYPE_WINDOW, SPACE_VIEW3D, and ScrArea::spacetype.
Referenced by paint_stroke_modal(), and sculpt_poll().
Definition at line 333 of file paint_utils.c.
References CLAMP(), paint_brush(), paint_get_active(), Brush::rgb, ARegion::winrct, ARegion::winx, ARegion::winy, rcti::xmin, and rcti::ymin.
Referenced by sample_color_exec().
int paint_space_stroke_enabled | ( | struct Brush * | br | ) |
Definition at line 834 of file paint_stroke.c.
References BRUSH_ANCHORED, BRUSH_SPACE, ELEM4, Brush::flag, Brush::sculpt_tool, SCULPT_TOOL_GRAB, SCULPT_TOOL_ROTATE, SCULPT_TOOL_SNAKE_HOOK, and SCULPT_TOOL_THUMB.
Referenced by paint_space_stroke(), paint_stroke_modal(), and sculpt_update_cache_variants().
int paint_stroke_cancel | ( | struct bContext * | C, |
struct wmOperator * | op | ||
) |
Definition at line 942 of file paint_stroke.c.
References wmOperator::customdata, PaintStroke::done, MEM_freeN(), NULL, and OPERATOR_CANCELLED.
Referenced by sculpt_brush_stroke_cancel(), vpaint_cancel(), and wpaint_cancel().
int paint_stroke_exec | ( | struct bContext * | C, |
struct wmOperator * | op | ||
) |
Definition at line 918 of file paint_stroke.c.
References wmOperator::customdata, PaintStroke::done, MEM_freeN(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_BEGIN, RNA_END, PaintStroke::stroke_started, PaintStroke::test_start, and PaintStroke::update_step.
Referenced by sculpt_brush_stroke_exec().
void paint_stroke_free | ( | struct PaintStroke * | stroke | ) |
Definition at line 828 of file paint_stroke.c.
References MEM_freeN().
Referenced by sculpt_brush_stroke_invoke(), and sculpt_get_brush_geometry().
int paint_stroke_modal | ( | struct bContext * | C, |
struct wmOperator * | op, | ||
struct wmEvent * | event | ||
) |
Definition at line 841 of file paint_stroke.c.
References PaintStroke::brush, BRUSH_AIRBRUSH, BRUSH_ANCHORED, BRUSH_SMOOTH_STROKE, CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, wmEvent::customdata, PaintStroke::done, ELEM, PaintStroke::event_type, Brush::flag, INBETWEEN_MOUSEMOVE, KM_RELEASE, PaintStroke::last_mouse_position, MEM_freeN(), MOUSEMOVE, NDOF_MOTION, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, paint_brush_stroke_add_step(), paint_draw_smooth_stroke(), paint_poll(), paint_smooth_stroke(), paint_space_stroke(), paint_space_stroke_enabled(), Brush::rate, PaintStroke::smooth_stroke_cursor, PaintStroke::stroke_started, PaintStroke::test_start, TIMER, PaintStroke::timer, wmEvent::type, wmEvent::val, WM_event_add_timer(), WM_event_remove_timer(), WM_paint_cursor_activate(), and WM_paint_cursor_end().
Referenced by PAINT_OT_vertex_paint(), PAINT_OT_weight_paint(), and SCULPT_OT_brush_stroke().
void* paint_stroke_mode_data | ( | struct PaintStroke * | stroke | ) |
Definition at line 960 of file paint_stroke.c.
References PaintStroke::mode_data.
Referenced by vpaint_stroke_done(), vpaint_stroke_update_step(), wpaint_stroke_done(), and wpaint_stroke_update_step().
struct PaintStroke* paint_stroke_new | ( | struct bContext * | C, |
StrokeGetLocation | get_location, | ||
StrokeTestStart | test_start, | ||
StrokeUpdateStep | update_step, | ||
StrokeDone | done, | ||
int | event_type | ||
) | [read] |
Definition at line 807 of file paint_stroke.c.
References ViewContext::ar, PaintStroke::brush, CTX_data_scene(), PaintStroke::done, PaintStroke::event_type, PaintStroke::get_location, PaintStroke::mats, MEM_callocN(), ViewContext::obact, paint_brush(), paint_get_active(), ViewContext::rv3d, PaintStroke::test_start, PaintStroke::update_step, PaintStroke::vc, view3d_get_transformation(), and view3d_set_viewcontext().
Referenced by sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), sculpt_get_brush_geometry(), vpaint_invoke(), and wpaint_invoke().
void paint_stroke_set_mode_data | ( | struct PaintStroke * | stroke, |
void * | mode_data | ||
) |
Definition at line 965 of file paint_stroke.c.
References PaintStroke::mode_data.
Referenced by vpaint_stroke_test_start(), and wpaint_stroke_test_start().
struct ViewContext* paint_stroke_view_context | ( | struct PaintStroke * | stroke | ) | [read] |
Definition at line 955 of file paint_stroke.c.
References PaintStroke::vc.
Referenced by sculpt_stroke_get_location(), sculpt_update_cache_invariants(), and sculpt_update_cache_variants().
void projectf | ( | struct bglMats * | mats, |
const float | v[3], | ||
float | p[2] | ||
) |
Definition at line 145 of file paint_utils.c.
References bglMats::modelview, bglMats::projection, and bglMats::viewport.
Referenced by project_brush_radius().
void undo_paint_push_begin | ( | int | type, |
const char * | name, | ||
UndoRestoreCb | restore, | ||
UndoFreeCb | free | ||
) |
Definition at line 199 of file paint_undo.c.
References UNDO_PAINT_IMAGE, UNDO_PAINT_MESH, and undo_stack_push_begin().
Referenced by sculpt_undo_push_begin(), texture_paint_camera_project_exec(), and texture_paint_init().
void undo_paint_push_count_alloc | ( | int | type, |
int | size | ||
) |
Definition at line 221 of file paint_undo.c.
References UndoStack::current, size(), UNDO_PAINT_IMAGE, UNDO_PAINT_MESH, and UndoElem::undosize.
Referenced by image_undo_push_tile(), and sculpt_undo_push_node().
void undo_paint_push_end | ( | int | type | ) |
Definition at line 229 of file paint_undo.c.
References UNDO_PAINT_IMAGE, UNDO_PAINT_MESH, and undo_stack_push_end().
Referenced by paint_exit(), and sculpt_undo_push_end().
struct ListBase* undo_paint_push_get_list | ( | int | type | ) | [read] |
Definition at line 207 of file paint_undo.c.
References UndoStack::current, UndoElem::elems, NULL, UNDO_PAINT_IMAGE, and UNDO_PAINT_MESH.
Referenced by image_undo_push_tile(), sculpt_undo_get_node(), sculpt_undo_push_end(), and sculpt_undo_push_node().
int vert_paint_poll | ( | struct bContext * | C | ) |
Definition at line 5507 of file paint_image.c.
References CTX_data_active_object(), and paint_vertsel_test().
Referenced by ED_keymap_paint(), PAINT_OT_vert_select_all(), and PAINT_OT_vert_select_inverse().
int vertex_paint_mode_poll | ( | struct bContext * | C | ) |
Definition at line 92 of file paint_vertex.c.
References CTX_data_active_object(), Object::data, Object::mode, and OB_MODE_VERTEX_PAINT.
Referenced by ED_keymap_paint(), PAINT_OT_vertex_color_set(), and vertex_paint_poll().
int vertex_paint_poll | ( | struct bContext * | C | ) |
Definition at line 99 of file paint_vertex.c.
References CTX_data_tool_settings(), CTX_wm_area(), CTX_wm_region(), paint_brush(), ARegion::regiontype, RGN_TYPE_WINDOW, SPACE_VIEW3D, ScrArea::spacetype, and vertex_paint_mode_poll().
Referenced by PAINT_OT_vertex_paint(), and set_vpaint().
void vpaint_fill | ( | struct Object * | ob, |
unsigned int | paintcol | ||
) |
Definition at line 348 of file paint_vertex.c.
References DAG_id_tag_update(), Mesh::editflag, get_mesh(), i, Mesh::id, make_vertexcol(), Mesh::mcol, ME_EDIT_PAINT_MASK, ME_FACE_SEL, Mesh::mface, NULL, and Mesh::totface.
Referenced by vertex_color_set_exec().
unsigned int vpaint_get_current_col | ( | struct VPaint * | vp | ) |
Definition at line 185 of file paint_vertex.c.
References VPaint::paint, paint_brush(), Brush::rgb, and rgba_to_mcol().
Referenced by vertex_color_set_exec(), and vpaint_stroke_test_start().
int weight_paint_mode_poll | ( | struct bContext * | C | ) |
Definition at line 113 of file paint_vertex.c.
References CTX_data_active_object(), Object::data, Object::mode, and OB_MODE_WEIGHT_PAINT.
Referenced by ED_keymap_paint(), PAINT_OT_weight_sample(), and PAINT_OT_weight_sample_group().
int weight_paint_poll | ( | struct bContext * | C | ) |
Definition at line 120 of file paint_vertex.c.
References CTX_data_active_object(), CTX_data_tool_settings(), CTX_wm_area(), CTX_wm_region(), Object::mode, NULL, OB_MODE_WEIGHT_PAINT, paint_brush(), ARegion::regiontype, RGN_TYPE_WINDOW, SPACE_VIEW3D, and ScrArea::spacetype.
Referenced by PAINT_OT_weight_paint(), and set_wpaint().
Definition at line 380 of file paint_vertex.c.
References Object::actdef, copy_wpaint_prev(), DAG_id_tag_update(), Object::data, defvert_verify_index(), Mesh::dvert, Mesh::editflag, MDeformVert::flag, MFace::flag, MVert::flag, Mesh::id, ME_EDIT_MIRROR_X, ME_EDIT_PAINT_SEL_MODE, ME_FACE_SEL, mesh_get_x_mirror_vert(), Mesh::mface, Mesh::mvert, NULL, SCE_SELECT_FACE, SCE_SELECT_VERTEX, SELECT, Mesh::totface, Mesh::totvert, MFace::v1, MFace::v4, MDeformWeight::weight, wpaint_mirror_vgroup_ensure(), and VPaint::wpaint_prev.
Referenced by weight_paint_set_exec().