Blender
V3.3
|
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "BLI_sys_types.h"
#include "BKE_context.h"
#include "BKE_paint.h"
#include "DNA_brush_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "WM_api.h"
#include "WM_toolsystem.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "ED_gpencil.h"
#include "gpencil_intern.h"
Go to the source code of this file.
void ED_keymap_gpencil | ( | wmKeyConfig * | keyconf | ) |
Definition at line 466 of file gpencil_ops.c.
References ed_keymap_gpencil_curve_editing(), ed_keymap_gpencil_editing(), ed_keymap_gpencil_general(), ed_keymap_gpencil_painting(), ed_keymap_gpencil_painting_draw(), ed_keymap_gpencil_painting_erase(), ed_keymap_gpencil_painting_fill(), ed_keymap_gpencil_painting_tint(), ed_keymap_gpencil_sculpting(), ed_keymap_gpencil_sculptpainting_clone(), ed_keymap_gpencil_sculptpainting_grab(), ed_keymap_gpencil_sculptpainting_pinch(), ed_keymap_gpencil_sculptpainting_push(), ed_keymap_gpencil_sculptpainting_randomize(), ed_keymap_gpencil_sculptpainting_smooth(), ed_keymap_gpencil_sculptpainting_strength(), ed_keymap_gpencil_sculptpainting_thickness(), ed_keymap_gpencil_sculptpainting_twist(), ed_keymap_gpencil_vertexpainting(), ed_keymap_gpencil_vertexpainting_average(), ed_keymap_gpencil_vertexpainting_blur(), ed_keymap_gpencil_vertexpainting_draw(), ed_keymap_gpencil_vertexpainting_replace(), ed_keymap_gpencil_vertexpainting_smear(), ed_keymap_gpencil_weightpainting(), and ed_keymap_gpencil_weightpainting_draw().
Referenced by ED_spacetypes_keymap().
|
static |
Definition at line 305 of file gpencil_ops.c.
References gpencil_stroke_editmode_curve_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 296 of file gpencil_ops.c.
References gpencil_stroke_editmode_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 37 of file gpencil_ops.c.
References WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 342 of file gpencil_ops.c.
References gpencil_stroke_paintmode_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 314 of file gpencil_ops.c.
References gpencil_stroke_paintmode_draw_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 321 of file gpencil_ops.c.
References gpencil_stroke_paintmode_erase_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 328 of file gpencil_ops.c.
References gpencil_stroke_paintmode_fill_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 335 of file gpencil_ops.c.
References gpencil_stroke_paintmode_tint_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 350 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 452 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_clone_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 422 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_grab_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 440 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_pinch_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 428 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_push_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 446 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_randomize_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 404 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_smooth_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 416 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_strength_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 410 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_thickness_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 434 of file gpencil_ops.c.
References gpencil_stroke_sculptmode_twist_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 365 of file gpencil_ops.c.
References gpencil_stroke_vertexmode_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 386 of file gpencil_ops.c.
References gpencil_stroke_vertexmode_average_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 380 of file gpencil_ops.c.
References gpencil_stroke_vertexmode_blur_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 373 of file gpencil_ops.c.
References gpencil_stroke_vertexmode_draw_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 398 of file gpencil_ops.c.
References gpencil_stroke_vertexmode_replace_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 392 of file gpencil_ops.c.
References gpencil_stroke_vertexmode_smear_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 358 of file gpencil_ops.c.
References gpencil_stroke_weightmode_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
|
static |
Definition at line 458 of file gpencil_ops.c.
References gpencil_stroke_weightmode_draw_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_keymap_gpencil().
Definition at line 690 of file gpencil_ops.c.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 498 of file gpencil_ops.c.
References GPENCIL_OT_active_frame_delete(), GPENCIL_OT_active_frames_delete_all(), GPENCIL_OT_annotate(), GPENCIL_OT_annotation_active_frame_delete(), GPENCIL_OT_annotation_add(), GPENCIL_OT_bake_grease_pencil_animation(), GPENCIL_OT_bake_mesh_animation(), GPENCIL_OT_blank_frame_add(), GPENCIL_OT_brush_reset(), GPENCIL_OT_brush_reset_all(), GPENCIL_OT_convert(), GPENCIL_OT_convert_old_files(), GPENCIL_OT_copy(), GPENCIL_OT_data_unlink(), GPENCIL_OT_delete(), GPENCIL_OT_dissolve(), GPENCIL_OT_draw(), GPENCIL_OT_duplicate(), GPENCIL_OT_editmode_toggle(), GPENCIL_OT_extract_palette_vertex(), GPENCIL_OT_extrude(), GPENCIL_OT_fill(), GPENCIL_OT_frame_clean_duplicate(), GPENCIL_OT_frame_clean_fill(), GPENCIL_OT_frame_clean_loose(), GPENCIL_OT_frame_duplicate(), GPENCIL_OT_generate_weights(), GPENCIL_OT_guide_rotate(), GPENCIL_OT_hide(), GPENCIL_OT_image_to_grease_pencil(), GPENCIL_OT_interpolate(), GPENCIL_OT_interpolate_reverse(), GPENCIL_OT_interpolate_sequence(), GPENCIL_OT_layer_active(), GPENCIL_OT_layer_add(), GPENCIL_OT_layer_annotation_add(), GPENCIL_OT_layer_annotation_move(), GPENCIL_OT_layer_annotation_remove(), GPENCIL_OT_layer_change(), GPENCIL_OT_layer_duplicate(), GPENCIL_OT_layer_duplicate_object(), GPENCIL_OT_layer_isolate(), GPENCIL_OT_layer_mask_add(), GPENCIL_OT_layer_mask_move(), GPENCIL_OT_layer_mask_remove(), GPENCIL_OT_layer_merge(), GPENCIL_OT_layer_move(), GPENCIL_OT_layer_remove(), GPENCIL_OT_lock_all(), GPENCIL_OT_lock_layer(), GPENCIL_OT_material_hide(), GPENCIL_OT_material_isolate(), GPENCIL_OT_material_lock_all(), GPENCIL_OT_material_lock_unused(), GPENCIL_OT_material_reveal(), GPENCIL_OT_material_select(), GPENCIL_OT_material_set(), GPENCIL_OT_material_to_vertex_color(), GPENCIL_OT_material_unlock_all(), GPENCIL_OT_materials_copy_to_object(), GPENCIL_OT_move_to_layer(), GPENCIL_OT_paintmode_toggle(), GPENCIL_OT_paste(), GPENCIL_OT_primitive_box(), GPENCIL_OT_primitive_circle(), GPENCIL_OT_primitive_curve(), GPENCIL_OT_primitive_line(), GPENCIL_OT_primitive_polyline(), GPENCIL_OT_recalc_geometry(), GPENCIL_OT_reproject(), GPENCIL_OT_reset_transform_fill(), GPENCIL_OT_reveal(), GPENCIL_OT_sculpt_paint(), GPENCIL_OT_sculptmode_toggle(), GPENCIL_OT_select(), GPENCIL_OT_select_all(), GPENCIL_OT_select_alternate(), GPENCIL_OT_select_box(), GPENCIL_OT_select_circle(), GPENCIL_OT_select_first(), GPENCIL_OT_select_grouped(), GPENCIL_OT_select_lasso(), GPENCIL_OT_select_last(), GPENCIL_OT_select_less(), GPENCIL_OT_select_linked(), GPENCIL_OT_select_more(), GPENCIL_OT_select_random(), GPENCIL_OT_select_vertex_color(), GPENCIL_OT_selection_opacity_toggle(), GPENCIL_OT_selectmode_toggle(), GPENCIL_OT_set_active_material(), GPENCIL_OT_snap_cursor_to_selected(), GPENCIL_OT_snap_to_cursor(), GPENCIL_OT_snap_to_grid(), GPENCIL_OT_stroke_apply_thickness(), GPENCIL_OT_stroke_arrange(), GPENCIL_OT_stroke_caps_set(), GPENCIL_OT_stroke_change_color(), GPENCIL_OT_stroke_cutter(), GPENCIL_OT_stroke_cyclical_set(), GPENCIL_OT_stroke_editcurve_set_handle_type(), GPENCIL_OT_stroke_enter_editcurve_mode(), GPENCIL_OT_stroke_flip(), GPENCIL_OT_stroke_join(), GPENCIL_OT_stroke_merge(), GPENCIL_OT_stroke_merge_by_distance(), GPENCIL_OT_stroke_merge_material(), GPENCIL_OT_stroke_normalize(), GPENCIL_OT_stroke_reset_vertex_color(), GPENCIL_OT_stroke_sample(), GPENCIL_OT_stroke_separate(), GPENCIL_OT_stroke_simplify(), GPENCIL_OT_stroke_simplify_fixed(), GPENCIL_OT_stroke_smooth(), GPENCIL_OT_stroke_split(), GPENCIL_OT_stroke_subdivide(), GPENCIL_OT_stroke_trim(), GPENCIL_OT_trace_image(), GPENCIL_OT_transform_fill(), GPENCIL_OT_unlock_all(), GPENCIL_OT_vertex_color_brightness_contrast(), GPENCIL_OT_vertex_color_hsv(), GPENCIL_OT_vertex_color_invert(), GPENCIL_OT_vertex_color_levels(), GPENCIL_OT_vertex_color_set(), GPENCIL_OT_vertex_group_assign(), GPENCIL_OT_vertex_group_deselect(), GPENCIL_OT_vertex_group_invert(), GPENCIL_OT_vertex_group_normalize(), GPENCIL_OT_vertex_group_normalize_all(), GPENCIL_OT_vertex_group_remove_from(), GPENCIL_OT_vertex_group_select(), GPENCIL_OT_vertex_group_smooth(), GPENCIL_OT_vertex_paint(), GPENCIL_OT_vertexmode_toggle(), GPENCIL_OT_weight_paint(), GPENCIL_OT_weightmode_toggle(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 52 of file gpencil_ops.c.
References C, CTX_data_gpencil_data(), GPENCIL_CURVE_EDIT_SESSIONS_ON, and GPENCIL_EDIT_MODE.
Referenced by ed_keymap_gpencil_curve_editing().
Definition at line 45 of file gpencil_ops.c.
References C, CTX_data_gpencil_data(), bGPdata::flag, and GP_DATA_STROKE_EDITMODE.
Referenced by ed_keymap_gpencil_editing().
Definition at line 139 of file gpencil_ops.c.
References C, GPAINT_TOOL_DRAW, and gpencil_stroke_paintmode_poll_with_tool().
Referenced by ed_keymap_gpencil_painting_draw().
Definition at line 145 of file gpencil_ops.c.
References C, GPAINT_TOOL_ERASE, and gpencil_stroke_paintmode_poll_with_tool().
Referenced by ed_keymap_gpencil_painting_erase().
Definition at line 151 of file gpencil_ops.c.
References C, GPAINT_TOOL_FILL, and gpencil_stroke_paintmode_poll_with_tool().
Referenced by ed_keymap_gpencil_painting_fill().
Definition at line 59 of file gpencil_ops.c.
References C, CTX_data_gpencil_data(), bGPdata::flag, and GP_DATA_STROKE_PAINTMODE.
Referenced by ed_keymap_gpencil_painting().
|
static |
Definition at line 66 of file gpencil_ops.c.
References BKE_paint_brush(), C, CTX_data_gpencil_data(), CTX_data_tool_settings(), bGPdata::flag, GP_DATA_STROKE_PAINTMODE, ToolSettings::gp_paint, Brush::gpencil_settings, Brush::gpencil_tool, GpPaint::paint, and WM_toolsystem_active_tool_is_brush().
Referenced by gpencil_stroke_paintmode_draw_poll(), gpencil_stroke_paintmode_erase_poll(), gpencil_stroke_paintmode_fill_poll(), and gpencil_stroke_paintmode_tint_poll().
Definition at line 157 of file gpencil_ops.c.
References C, GPAINT_TOOL_TINT, and gpencil_stroke_paintmode_poll_with_tool().
Referenced by ed_keymap_gpencil_painting_tint().
Definition at line 284 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_CLONE.
Referenced by ed_keymap_gpencil_sculptpainting_clone().
Definition at line 255 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_GRAB.
Referenced by ed_keymap_gpencil_sculptpainting_grab().
Definition at line 273 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_PINCH.
Referenced by ed_keymap_gpencil_sculptpainting_pinch().
Definition at line 163 of file gpencil_ops.c.
References blender::compositor::area(), C, CTX_data_active_object(), CTX_data_gpencil_data(), CTX_wm_area(), bGPdata::flag, GP_DATA_STROKE_EDITMODE, GPENCIL_SCULPT_MODE, OB_GPENCIL, SPACE_VIEW3D, and Object::type.
Referenced by ed_keymap_gpencil_sculpting().
|
static |
Definition at line 102 of file gpencil_ops.c.
References BKE_paint_brush(), C, CTX_data_gpencil_data(), CTX_data_tool_settings(), bGPdata::flag, GP_DATA_STROKE_SCULPTMODE, ToolSettings::gp_sculptpaint, Brush::gpencil_sculpt_tool, Brush::gpencil_settings, GpSculptPaint::paint, and WM_toolsystem_active_tool_is_brush().
Referenced by gpencil_stroke_sculptmode_clone_poll(), gpencil_stroke_sculptmode_grab_poll(), gpencil_stroke_sculptmode_pinch_poll(), gpencil_stroke_sculptmode_push_poll(), gpencil_stroke_sculptmode_randomize_poll(), gpencil_stroke_sculptmode_smooth_poll(), gpencil_stroke_sculptmode_strength_poll(), gpencil_stroke_sculptmode_thickness_poll(), and gpencil_stroke_sculptmode_twist_poll().
Definition at line 261 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_PUSH.
Referenced by ed_keymap_gpencil_sculptpainting_push().
Definition at line 278 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_RANDOMIZE.
Referenced by ed_keymap_gpencil_sculptpainting_randomize().
Definition at line 238 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_SMOOTH.
Referenced by ed_keymap_gpencil_sculptpainting_smooth().
Definition at line 249 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_STRENGTH.
Referenced by ed_keymap_gpencil_sculptpainting_strength().
Definition at line 243 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_THICKNESS.
Referenced by ed_keymap_gpencil_sculptpainting_thickness().
Definition at line 267 of file gpencil_ops.c.
References C, gpencil_stroke_sculptmode_poll_with_tool(), and GPSCULPT_TOOL_TWIST.
Referenced by ed_keymap_gpencil_sculptpainting_twist().
Definition at line 220 of file gpencil_ops.c.
References C, gpencil_stroke_vertexmode_poll_with_tool(), and GPVERTEX_TOOL_AVERAGE.
Referenced by ed_keymap_gpencil_vertexpainting_average().
Definition at line 214 of file gpencil_ops.c.
References C, gpencil_stroke_vertexmode_poll_with_tool(), and GPVERTEX_TOOL_BLUR.
Referenced by ed_keymap_gpencil_vertexpainting_blur().
Definition at line 208 of file gpencil_ops.c.
References C, gpencil_stroke_vertexmode_poll_with_tool(), and GPVERTEX_TOOL_DRAW.
Referenced by ed_keymap_gpencil_vertexpainting_draw().
Definition at line 195 of file gpencil_ops.c.
References C, CTX_data_active_object(), CTX_data_gpencil_data(), bGPdata::flag, GP_DATA_STROKE_VERTEXMODE, OB_GPENCIL, and Object::type.
Referenced by ed_keymap_gpencil_vertexpainting().
|
static |
Definition at line 84 of file gpencil_ops.c.
References BKE_paint_brush(), C, CTX_data_gpencil_data(), CTX_data_tool_settings(), bGPdata::flag, GP_DATA_STROKE_VERTEXMODE, ToolSettings::gp_vertexpaint, Brush::gpencil_settings, Brush::gpencil_vertex_tool, GpVertexPaint::paint, and WM_toolsystem_active_tool_is_brush().
Referenced by gpencil_stroke_vertexmode_average_poll(), gpencil_stroke_vertexmode_blur_poll(), gpencil_stroke_vertexmode_draw_poll(), gpencil_stroke_vertexmode_replace_poll(), and gpencil_stroke_vertexmode_smear_poll().
Definition at line 232 of file gpencil_ops.c.
References C, gpencil_stroke_vertexmode_poll_with_tool(), and GPVERTEX_TOOL_REPLACE.
Referenced by ed_keymap_gpencil_vertexpainting_replace().
Definition at line 226 of file gpencil_ops.c.
References C, gpencil_stroke_vertexmode_poll_with_tool(), and GPVERTEX_TOOL_SMEAR.
Referenced by ed_keymap_gpencil_vertexpainting_smear().
Definition at line 290 of file gpencil_ops.c.
References C, gpencil_stroke_weightmode_poll_with_tool(), and GPWEIGHT_TOOL_DRAW.
Referenced by ed_keymap_gpencil_weightpainting_draw().
Definition at line 182 of file gpencil_ops.c.
References C, CTX_data_active_object(), CTX_data_gpencil_data(), GPENCIL_WEIGHT_MODE, OB_GPENCIL, and Object::type.
Referenced by ed_keymap_gpencil_weightpainting().
|
static |
Definition at line 120 of file gpencil_ops.c.
References BKE_paint_brush(), C, CTX_data_gpencil_data(), CTX_data_tool_settings(), bGPdata::flag, GP_DATA_STROKE_WEIGHTMODE, ToolSettings::gp_weightpaint, Brush::gpencil_settings, Brush::gpencil_weight_tool, GpWeightPaint::paint, and WM_toolsystem_active_tool_is_brush().
Referenced by gpencil_stroke_weightmode_draw_poll().