Blender
V3.3
|
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_lasso_2d.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_gpencil_modifier_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_material_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "BKE_brush.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_global.h"
#include "BKE_gpencil.h"
#include "BKE_gpencil_curve.h"
#include "BKE_gpencil_geom.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_workspace.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_toolsystem.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "UI_view2d.h"
#include "ED_armature.h"
#include "ED_gpencil.h"
#include "ED_keyframing.h"
#include "ED_object.h"
#include "ED_outliner.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "ED_space_api.h"
#include "ED_transform_snap_object_context.h"
#include "ED_view3d.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "gpencil_intern.h"
Go to the source code of this file.
Classes | |
struct | tJoinStrokes |
struct | GP_SelectLassoUserData |
Paste Selected Strokes Operator | |
enum | eGP_PasteMode { GP_COPY_BY_LAYER = -1 , GP_COPY_TO_ACTIVE = 1 } |
typedef enum eGP_PasteMode | eGP_PasteMode |
static bool | gpencil_strokes_paste_poll (bContext *C) |
static int | gpencil_strokes_paste_exec (bContext *C, wmOperator *op) |
void | GPENCIL_OT_paste (wmOperatorType *ot) |
Delete/Dissolve Utilities | |
enum | eGP_DeleteMode { GP_DELETEOP_POINTS = 0 , GP_DELETEOP_STROKES = 1 , GP_DELETEOP_FRAME = 2 } |
enum | eGP_DissolveMode { GP_DISSOLVE_POINTS = 0 , GP_DISSOLVE_BETWEEN = 1 , GP_DISSOLVE_UNSELECT = 2 } |
typedef enum eGP_DeleteMode | eGP_DeleteMode |
typedef enum eGP_DissolveMode | eGP_DissolveMode |
static int | gpencil_delete_selected_strokes (bContext *C) |
static bool | gpencil_dissolve_selected_curve_points (bContext *C, bGPdata *gpd, eGP_DissolveMode mode) |
static bool | gpencil_dissolve_selected_stroke_points (bContext *C, bGPdata *gpd, eGP_DissolveMode mode) |
static int | gpencil_dissolve_selected_points (bContext *C, eGP_DissolveMode mode) |
static int | gpencil_delete_selected_points (bContext *C) |
int | gpencil_delete_selected_point_wrap (bContext *C) |
Stroke Toggle Cyclic Operator | |
enum | { GP_STROKE_CYCLIC_CLOSE = 1 , GP_STROKE_CYCLIC_OPEN = 2 , GP_STROKE_CYCLIC_TOGGLE = 3 } |
static int | gpencil_stroke_cyclical_set_exec (bContext *C, wmOperator *op) |
static bool | gpencil_cyclical_set_curve_edit_poll_property (const bContext *C, wmOperator *UNUSED(op), const PropertyRNA *prop) |
void | GPENCIL_OT_stroke_cyclical_set (wmOperatorType *ot) |
Stroke Toggle Flat Caps Operator | |
enum | { GP_STROKE_CAPS_TOGGLE_BOTH = 0 , GP_STROKE_CAPS_TOGGLE_START = 1 , GP_STROKE_CAPS_TOGGLE_END = 2 , GP_STROKE_CAPS_TOGGLE_DEFAULT = 3 } |
static int | gpencil_stroke_caps_set_exec (bContext *C, wmOperator *op) |
void | GPENCIL_OT_stroke_caps_set (wmOperatorType *ot) |
Stroke Separate Operator | |
enum | eGP_SeparateModes { GP_SEPARATE_POINT = 0 , GP_SEPARATE_STROKE , GP_SEPARATE_LAYER } |
typedef enum eGP_SeparateModes | eGP_SeparateModes |
static int | gpencil_stroke_separate_exec (bContext *C, wmOperator *op) |
void | GPENCIL_OT_stroke_separate (wmOperatorType *ot) |
Stroke Normalize Operator | |
enum | eGP_NormalizeMode { GP_NORMALIZE_THICKNESS = 0 , GP_NORMALIZE_OPACITY } |
typedef enum eGP_NormalizeMode | eGP_NormalizeMode |
static bool | gpencil_stroke_normalize_poll (bContext *C) |
static void | gpencil_stroke_normalize_ui (bContext *UNUSED(C), wmOperator *op) |
static int | gpencil_stroke_normalize_exec (bContext *C, wmOperator *op) |
void | GPENCIL_OT_stroke_normalize (wmOperatorType *ot) |
Stroke Join Operator | |
typedef struct tJoinStrokes | tJoinStrokes |
static int | gpencil_get_nearest_stroke_index (tJoinStrokes *strokes_list, const bGPDstroke *gps, const int totstrokes) |
static int | gpencil_stroke_join_exec (bContext *C, wmOperator *op) |
void | GPENCIL_OT_stroke_join (wmOperatorType *ot) |
Stroke Cutter Operator | |
typedef bool(* | GPencilTestFn) (bGPDstroke *gps, bGPDspoint *pt, const GP_SpaceConversion *gsc, const float diff_mat[4][4], void *user_data) |
static bool | gpencil_test_lasso (bGPDstroke *gps, bGPDspoint *pt, const GP_SpaceConversion *gsc, const float diff_mat[4][4], void *user_data) |
static void | gpencil_cutter_dissolve (bGPdata *gpd, bGPDlayer *hit_layer, bGPDstroke *hit_stroke, const bool flat_caps) |
static int | gpencil_cutter_lasso_select (bContext *C, wmOperator *op, GPencilTestFn is_inside_fn, void *user_data) |
static bool | gpencil_cutter_poll (bContext *C) |
static int | gpencil_cutter_exec (bContext *C, wmOperator *op) |
void | GPENCIL_OT_stroke_cutter (wmOperatorType *ot) |
bool | ED_object_gpencil_exit (struct Main *bmain, Object *ob) |
Copy/Paste Strokes Utilities | |
Grease Pencil stroke data copy/paste buffer:
| |
ListBase | gpencil_strokes_copypastebuf = {NULL, NULL} |
static GHash * | gpencil_strokes_copypastebuf_colors = NULL |
static GHash * | gpencil_strokes_copypastebuf_colors_material_to_name_create (Main *bmain) |
static void | gpencil_strokes_copypastebuf_colors_material_to_name_free (GHash *ma_to_name) |
static GHash * | gpencil_strokes_copypastebuf_colors_name_to_material_create (Main *bmain) |
static void | gpencil_strokes_copypastebuf_colors_name_to_material_free (GHash *name_to_ma) |
void | ED_gpencil_strokes_copybuf_free (void) |
GHash * | gpencil_copybuf_validate_colormap (bContext *C) |
Operators for editing Grease Pencil strokes.
Definition in file gpencil_edit.c.
typedef enum eGP_DeleteMode eGP_DeleteMode |
typedef enum eGP_DissolveMode eGP_DissolveMode |
typedef enum eGP_NormalizeMode eGP_NormalizeMode |
typedef enum eGP_PasteMode eGP_PasteMode |
typedef enum eGP_SeparateModes eGP_SeparateModes |
typedef bool(* GPencilTestFn) (bGPDstroke *gps, bGPDspoint *pt, const GP_SpaceConversion *gsc, const float diff_mat[4][4], void *user_data) |
Definition at line 5072 of file gpencil_edit.c.
typedef struct tJoinStrokes tJoinStrokes |
anonymous enum |
Enumerator | |
---|---|
GP_STROKE_CYCLIC_CLOSE | |
GP_STROKE_CYCLIC_OPEN | |
GP_STROKE_CYCLIC_TOGGLE |
Definition at line 3242 of file gpencil_edit.c.
anonymous enum |
Enumerator | |
---|---|
GP_STROKE_CAPS_TOGGLE_BOTH | |
GP_STROKE_CAPS_TOGGLE_START | |
GP_STROKE_CAPS_TOGGLE_END | |
GP_STROKE_CAPS_TOGGLE_DEFAULT |
Definition at line 3394 of file gpencil_edit.c.
enum eGP_DeleteMode |
Enumerator | |
---|---|
GP_DELETEOP_POINTS | |
GP_DELETEOP_STROKES | |
GP_DELETEOP_FRAME |
Definition at line 2205 of file gpencil_edit.c.
enum eGP_DissolveMode |
Enumerator | |
---|---|
GP_DISSOLVE_POINTS | |
GP_DISSOLVE_BETWEEN | |
GP_DISSOLVE_UNSELECT |
Definition at line 2214 of file gpencil_edit.c.
enum eGP_NormalizeMode |
Enumerator | |
---|---|
GP_NORMALIZE_THICKNESS | |
GP_NORMALIZE_OPACITY |
Definition at line 5456 of file gpencil_edit.c.
enum eGP_PasteMode |
Enumerator | |
---|---|
GP_COPY_BY_LAYER | |
GP_COPY_TO_ACTIVE |
Definition at line 1626 of file gpencil_edit.c.
enum eGP_SeparateModes |
Enumerator | |
---|---|
GP_SEPARATE_POINT | |
GP_SEPARATE_STROKE | |
GP_SEPARATE_LAYER |
Definition at line 4582 of file gpencil_edit.c.
Definition at line 2065 of file gpencil_edit.c.
References bGPDlayer::actframe, BKE_gpencil_layer_active_get(), C, and ED_annotation_data_get_active().
Referenced by GPENCIL_OT_annotation_active_frame_delete().
Free copy/paste buffer data.
Definition at line 1416 of file gpencil_edit.c.
References BKE_gpencil_free_stroke_weights(), BLI_freelinkN(), BLI_ghash_free(), bGPDstroke::dvert, ListBase::first, gpencil_strokes_copypastebuf, gpencil_strokes_copypastebuf_colors, ListBase::last, MEM_freeN, MEM_SAFE_FREE, bGPDstroke::next, NULL, bGPDstroke::points, and bGPDstroke::triangles.
Referenced by gpencil_strokes_copy_exec(), and WM_exit_ex().
Definition at line 5348 of file gpencil_edit.c.
References Object::data, DEG_id_tag_update_ex(), bGPdata::flag, GP_DATA_STROKE_EDITMODE, GP_DATA_STROKE_PAINTMODE, GP_DATA_STROKE_SCULPTMODE, GP_DATA_STROKE_VERTEXMODE, GP_DATA_STROKE_WEIGHTMODE, Object::id, ID_RECALC_COPY_ON_WRITE, Object::mode, OB_MODE_EDIT_GPENCIL, OB_MODE_PAINT_GPENCIL, OB_MODE_SCULPT_GPENCIL, OB_MODE_VERTEX_GPENCIL, OB_MODE_WEIGHT_GPENCIL, and Object::restore_mode.
Referenced by ed_object_mode_generic_exit_ex().
|
static |
Definition at line 2152 of file gpencil_edit.c.
References BKE_gpencil_layer_frame_delete(), BKE_gpencil_layer_frame_get(), BKE_report(), C, RenderData::cfra, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), DEG_id_tag_update(), ED_gpencil_data_get_active(), GP_GETFRAME_USE_PREV, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, wmOperator::reports, RPT_ERROR, scene, and WM_event_add_notifier().
Referenced by GPENCIL_OT_active_frames_delete_all().
Definition at line 2142 of file gpencil_edit.c.
References C, ED_gpencil_data_get_active(), ListBase::first, and bGPdata::layers.
Referenced by GPENCIL_OT_active_frames_delete_all().
|
static |
Definition at line 2075 of file gpencil_edit.c.
References BKE_gpencil_layer_active_get(), BKE_gpencil_layer_frame_delete(), BKE_gpencil_layer_frame_get(), BKE_report(), C, RenderData::cfra, CTX_data_scene(), DEG_id_tag_update(), ED_annotation_data_get_active(), ED_gpencil_data_get_active(), ELEM, GP_GETFRAME_USE_PREV, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, wmOperator::idname, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, wmOperator::reports, RPT_ERROR, scene, STREQ, and WM_event_add_notifier().
Referenced by gpencil_delete_exec(), GPENCIL_OT_active_frame_delete(), and GPENCIL_OT_annotation_active_frame_delete().
Definition at line 2056 of file gpencil_edit.c.
References bGPDlayer::actframe, BKE_gpencil_layer_active_get(), C, and ED_gpencil_data_get_active().
Referenced by GPENCIL_OT_active_frame_delete().
|
static |
Definition at line 1062 of file gpencil_edit.c.
References BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_flip(), BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_select_index_reset(), BLI_insertlinkafter(), bGPDstroke::dvert, ELEM, bGPDspoint::flag, bGPDstroke::flag, GP_SPOINT_SELECT, GP_STROKE_SELECT, gpencil_copy_move_point(), MEM_callocN, MEM_dupallocN, MEM_recallocN, MEM_SAFE_FREE, bGPDstroke::next, NULL, bGPDstroke::points, bGPDstroke::prev, bGPDframe::strokes, and bGPDstroke::totpoints.
Referenced by gpencil_extrude_exec().
|
static |
Definition at line 1978 of file gpencil_edit.c.
References BKE_gpencil_layer_active_get(), BKE_gpencil_layer_frame_find(), BKE_gpencil_layer_frame_get(), C, RenderData::cfra, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, bGPDframe::framenum, GP_GETFRAME_ADD_NEW, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, RNA_boolean_get(), scene, WM_event_add_notifier(), WM_OP_EXEC_DEFAULT, and WM_operator_name_call().
Referenced by GPENCIL_OT_blank_frame_add().
|
static |
Definition at line 1028 of file gpencil_edit.c.
References copy(), copy_v3_v3(), copy_v4_v4(), bGPDstroke::dvert, MDeformVert::dw, bGPDspoint::flag, MEM_dupallocN, NULL, bGPDstroke::points, bGPDspoint::pressure, bGPDspoint::strength, bGPDspoint::time, MDeformVert::totweight, bGPDspoint::uv_fac, bGPDspoint::uv_rot, bGPDspoint::vert_color, and bGPDspoint::x.
Referenced by gpencil_add_move_points().
Ensure that destination datablock has all the colors the pasted strokes need. Helper function for copy-pasting strokes
Definition at line 1448 of file gpencil_edit.c.
References BKE_gpencil_object_material_ensure(), BLI_ghash_haskey(), BLI_ghash_insert(), BLI_ghash_int_new(), BLI_ghash_lookup(), BLI_ghashIterator_getKey(), BLI_ghashIterator_getValue(), C, CTX_data_active_object(), CTX_data_main(), GHASH_ITER, gpencil_strokes_copypastebuf_colors, gpencil_strokes_copypastebuf_colors_name_to_material_create(), gpencil_strokes_copypastebuf_colors_name_to_material_free(), and POINTER_FROM_INT.
Referenced by gpencil_brush_clone_init(), and gpencil_strokes_paste_exec().
|
static |
Definition at line 4053 of file gpencil_edit.c.
References bGPDspoint::flag, bGPDstroke::flag, GP_SPOINT_SELECT, GP_STROKE_CYCLIC, bGPDstroke::points, and bGPDstroke::totpoints.
Referenced by gpencil_stroke_subdivide().
|
static |
Definition at line 1190 of file gpencil_edit.c.
References bGPDcurve_point::bezt, BEZT_DESEL_ALL, BEZT_SEL_IDX, BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_editcurve_new(), BKE_gpencil_stroke_geometry_update(), BLI_insertlinkafter(), bGPDcurve::curve_points, bGPDstroke::editcurve, bGPDcurve_point::flag, bGPDcurve::flag, bGPDstroke::flag, GP_CURVE_POINT_SELECT, GP_CURVE_SELECT, GP_STROKE_CYCLIC, GP_STROKE_NEEDS_CURVE_UPDATE, MEM_recallocN, bGPDstroke::next, NULL, bGPDstroke::points, bGPDstroke::prev, bGPDframe::strokes, and bGPDcurve::tot_curve_points.
Referenced by gpencil_extrude_exec().
|
static |
Definition at line 5078 of file gpencil_edit.c.
References bGPDlayer::actframe, BKE_gpencil_free_stroke(), BKE_gpencil_stroke_delete_tagged_points(), BLI_remlink(), bGPDstroke::caps, bGPDspoint::flag, GP_SPOINT_SELECT, GP_SPOINT_TAG, GP_STROKE_CAP_FLAT, len_v3v3(), bGPDstroke::next, NULL, bGPDstroke::points, bGPDframe::strokes, bGPDstroke::totpoints, and bGPDspoint::x.
Referenced by gpencil_cutter_lasso_select().
|
static |
Definition at line 5298 of file gpencil_edit.c.
References blender::compositor::area(), BKE_report(), BLI_lasso_boundbox(), C, CTX_wm_area(), data, gpencil_cutter_lasso_select(), gpencil_test_lasso(), MEM_freeN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::reports, RPT_ERROR, and WM_gesture_lasso_path_to_array().
Referenced by GPENCIL_OT_stroke_cutter().
|
static |
Definition at line 5141 of file gpencil_edit.c.
References blender::compositor::area(), BKE_gpencil_layer_transform_matrix_get(), BKE_gpencil_stroke_select_index_reset(), BKE_gpencil_stroke_select_index_set(), BKE_report(), bool, C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_tool_settings(), CTX_wm_area(), DEG_id_tag_update(), depsgraph, ED_gpencil_data_get_active(), ED_gpencil_select_stroke_segment(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), bGPDspoint::flag, GP_FRAME_SELECT, GP_LAYER_HIDE, GP_LAYER_LOCKED, ToolSettings::gp_sculpt, GP_SPOINT_SELECT, GP_SPOINT_TAG, GP_STROKE_SELECT, gpencil_cutter_dissolve(), GPENCIL_MULTIEDIT_SESSIONS_ON, gpencil_point_conversion_init(), bGPdata::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, is_inside(), GP_Sculpt_Settings::isect_threshold, bGPdata::layers, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, NA_SELECTED, NC_GEOM, NC_GPENCIL, ND_SELECT, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, user_data, and WM_event_add_notifier().
Referenced by gpencil_cutter_exec().
Definition at line 5285 of file gpencil_edit.c.
References C, ED_gpencil_data_get_active(), ListBase::first, GPENCIL_PAINT_MODE, and bGPdata::layers.
Referenced by GPENCIL_OT_stroke_cutter().
|
static |
Definition at line 3341 of file gpencil_edit.c.
References C, ED_gpencil_data_get_active(), GPENCIL_CURVE_EDIT_SESSIONS_ON, NULL, RNA_property_identifier(), and STREQ.
Referenced by GPENCIL_OT_stroke_cyclical_set().
|
static |
Definition at line 2704 of file gpencil_edit.c.
References C, GP_DELETEOP_FRAME, GP_DELETEOP_POINTS, GP_DELETEOP_STROKES, gpencil_actframe_delete_exec(), gpencil_delete_selected_points(), gpencil_delete_selected_strokes(), OPERATOR_CANCELLED, wmOperator::ptr, result, and RNA_enum_get().
Referenced by GPENCIL_OT_delete().
int gpencil_delete_selected_point_wrap | ( | bContext * | C | ) |
Simple wrapper to external call.
Definition at line 2693 of file gpencil_edit.c.
References C, and gpencil_delete_selected_points().
Referenced by gpencil_generic_select_exec().
|
static |
Definition at line 2631 of file gpencil_edit.c.
References BKE_gpencil_curve_delete_tagged_points(), BKE_gpencil_stroke_delete_tagged_points(), BKE_gpencil_stroke_select_index_reset(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), GP_CURVE_POINT_SELECT, GP_FRAME_SELECT, GP_SPOINT_SELECT, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH_MUTABLE, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by gpencil_delete_exec(), and gpencil_delete_selected_point_wrap().
|
static |
Definition at line 2224 of file gpencil_edit.c.
References BKE_gpencil_free_stroke(), BLI_remlink(), bool, C, CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), GP_FRAME_SELECT, GP_STROKE_SELECT, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH_MUTABLE, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by gpencil_delete_exec().
|
static |
Definition at line 2767 of file gpencil_edit.c.
References C, gpencil_dissolve_selected_points(), wmOperator::ptr, and RNA_enum_get().
Referenced by GPENCIL_OT_dissolve().
|
static |
Definition at line 2272 of file gpencil_edit.c.
References BKE_gpencil_editcurve_recalculate_handles(), BKE_gpencil_free_stroke(), BKE_gpencil_stroke_geometry_update(), BLI_remlink(), C, bGPDcurve_point::flag, GP_CURVE_POINT_SELECT, GP_CURVE_SELECT, GP_DISSOLVE_BETWEEN, GP_DISSOLVE_POINTS, GP_DISSOLVE_UNSELECT, GP_EDITABLE_CURVES_BEGIN, GP_EDITABLE_CURVES_END, GP_STROKE_NEEDS_CURVE_UPDATE, MEM_callocN, MEM_freeN, and NULL.
Referenced by gpencil_dissolve_selected_points().
|
static |
Definition at line 2606 of file gpencil_edit.c.
References C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), GPENCIL_CURVE_EDIT_SESSIONS_ON, gpencil_dissolve_selected_curve_points(), gpencil_dissolve_selected_stroke_points(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by gpencil_dissolve_exec().
|
static |
Definition at line 2406 of file gpencil_edit.c.
References BKE_gpencil_free_stroke(), BKE_gpencil_free_stroke_weights(), BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_select_index_reset(), BLI_remlink(), C, MDeformVert::dw, bGPDspoint::flag, GP_DISSOLVE_BETWEEN, GP_DISSOLVE_POINTS, GP_DISSOLVE_UNSELECT, GP_EDITABLE_STROKES_BEGIN, GP_EDITABLE_STROKES_END, GP_SPOINT_SELECT, GP_STROKE_SELECT, MEM_callocN, MEM_dupallocN, MEM_freeN, and NULL.
Referenced by gpencil_dissolve_selected_points().
|
static |
Definition at line 911 of file gpencil_edit.c.
References BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_select_index_reset(), BKE_report(), BLI_addtail(), BLI_assert, BLI_movelisttolist(), BLI_strncpy(), bool, C, CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ListBase::first, bGPDspoint::flag, bGPDstroke::flag, GP_SPOINT_SELECT, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, gpencil_duplicate_points(), GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDstroke::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDstroke::points, bGPDstroke::prev, wmOperator::reports, RPT_ERROR, bGPDstroke::runtime, bGPDframe::strokes, bGPDstroke_Runtime::tmp_layerinfo, bGPDstroke::totpoints, and WM_event_add_notifier().
Referenced by GPENCIL_OT_duplicate().
|
static |
Definition at line 832 of file gpencil_edit.c.
References BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_geometry_update(), BLI_addtail(), BLI_strncpy(), bGPDstroke::dvert, MDeformVert::dw, e, bGPDspoint::flag, GP_SPOINT_SELECT, len, MEM_dupallocN, MEM_mallocN, bGPDstroke::next, NULL, bGPDstroke::points, bGPDstroke::prev, bGPDstroke::runtime, bGPDstroke_Runtime::tmp_layerinfo, and bGPDstroke::totpoints.
Referenced by gpencil_duplicate_exec(), and gpencil_strokes_copy_exec().
|
static |
Definition at line 152 of file gpencil_edit.c.
References BKE_gpencil_editcurve_stroke_sync_selection(), BKE_gpencil_stroke_editcurve_update(), BKE_gpencil_stroke_geometry_update(), BKE_report(), C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_message_bus(), Object::data, DEG_id_tag_update(), depsgraph, ED_gpencil_data_get_active(), ED_gpencil_reset_layers_parent(), ED_gpencil_setup_modes(), bGPdata::flag, G, GP_CURVE_NEEDS_STROKE_UPDATE, GP_DATA_STROKE_EDITMODE, GP_EDITABLE_CURVES_BEGIN, GP_EDITABLE_CURVES_END, GP_STROKE_NEEDS_CURVE_UPDATE, GPENCIL_CURVE_EDIT_SESSIONS_ON, bGPdata::id, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, NULL, OB_GPENCIL, OB_MODE_EDIT_GPENCIL, OB_MODE_OBJECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, Object::restore_mode, RNA_boolean_get(), RPT_ERROR, Object::type, WM_event_add_notifier(), WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by GPENCIL_OT_editmode_toggle().
Definition at line 118 of file gpencil_edit.c.
References C, CTX_data_active_object(), Object::data, ED_gpencil_data_get_active(), NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_editmode_toggle().
|
static |
Definition at line 1279 of file gpencil_edit.c.
References BKE_report(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, Object::data, DEG_id_tag_update(), ED_gpencil_stroke_can_use(), bGPDstroke::editcurve, bGPDcurve::flag, bGPDstroke::flag, GP_CURVE_SELECT, GP_FRAME_SELECT, GP_STROKE_SELECT, gpencil_add_move_points(), GPENCIL_CURVE_EDIT_SESSIONS_ON, gpencil_curve_extrude_points(), GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDstroke::next, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_extrude().
|
static |
Definition at line 3518 of file gpencil_edit.c.
References copy_v3_v3(), tJoinStrokes::gps, len_squared_v3v3(), bGPDstroke::points, bGPDstroke::totpoints, tJoinStrokes::used, and bGPDspoint::x.
Referenced by gpencil_stroke_join_exec().
|
static |
Definition at line 788 of file gpencil_edit.c.
References C, CTX_wm_view3d(), NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, View3D::vertex_opacity, and WM_event_add_notifier().
Referenced by GPENCIL_OT_selection_opacity_toggle().
|
static |
Definition at line 5390 of file gpencil_edit.c.
References BKE_gpencil_stroke_merge_distance(), bool, C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), ELEM, GP_EDITABLE_STROKES_BEGIN, GP_EDITABLE_STROKES_END, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), threshold, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_merge_by_distance().
Definition at line 5374 of file gpencil_edit.c.
References BKE_gpencil_layer_active_get(), C, CTX_data_active_object(), Object::data, if(), Object::mode, NULL, OB_GPENCIL, OB_MODE_EDIT_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_stroke_merge_by_distance().
|
static |
Definition at line 1801 of file gpencil_edit.c.
References C, CTX_data_active_object(), Object::data, and NULL.
Referenced by gpencil_move_to_layer_invoke(), and GPENCIL_OT_move_to_layer().
|
static |
Definition at line 1926 of file gpencil_edit.c.
References C, CTX_data_active_object(), Object::data, gpencil_move_to_layer_exec(), layer_new_name_get(), MAX_NAME, wmOperator::ptr, RNA_int_get(), RNA_property_is_set(), RNA_property_string_set(), RNA_struct_find_property(), and WM_operator_props_dialog_popup().
Referenced by GPENCIL_OT_move_to_layer().
void GPENCIL_OT_active_frame_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2108 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_actframe_delete_exec(), gpencil_actframe_delete_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_active_frames_delete_all | ( | wmOperatorType * | ot | ) |
Definition at line 2185 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_actframe_delete_all_exec(), gpencil_actframe_delete_all_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_annotation_active_frame_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2122 of file gpencil_edit.c.
References annotation_actframe_delete_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_actframe_delete_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_blank_frame_add | ( | wmOperatorType * | ot | ) |
Definition at line 2024 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_add_poll(), gpencil_blank_frame_add_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 1589 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, gpencil_stroke_edit_poll(), gpencil_strokes_copy_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2726 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_DELETEOP_FRAME, GP_DELETEOP_POINTS, GP_DELETEOP_STROKES, gpencil_delete_exec(), gpencil_stroke_edit_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_dissolve | ( | wmOperatorType * | ot | ) |
Definition at line 2774 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_DISSOLVE_BETWEEN, GP_DISSOLVE_POINTS, GP_DISSOLVE_UNSELECT, gpencil_dissolve_exec(), gpencil_stroke_edit_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 1006 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_duplicate_exec(), gpencil_stroke_edit_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_editmode_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 231 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_editmode_toggle_exec(), gpencil_editmode_toggle_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_extrude | ( | wmOperatorType * | ot | ) |
Definition at line 1345 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_extrude_exec(), gpencil_stroke_edit_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_move_to_layer | ( | wmOperatorType * | ot | ) |
Definition at line 1944 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_move_to_layer_exec(), gpencil_move_to_layer_invoke(), gpencil_stroke_edit_poll(), wmOperatorType::idname, wmOperatorType::invoke, MAX_NAME, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_paintmode_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 428 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_paintmode_toggle_exec(), gpencil_paintmode_toggle_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 1765 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_COPY_BY_LAYER, GP_COPY_TO_ACTIVE, gpencil_strokes_paste_exec(), gpencil_strokes_paste_poll(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_recalc_geometry | ( | wmOperatorType * | ot | ) |
Definition at line 3971 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_recalc_geometry_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_reproject | ( | wmOperatorType * | ot | ) |
Definition at line 3894 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_REPROJECT_CURSOR, GP_REPROJECT_FRONT, GP_REPROJECT_SIDE, GP_REPROJECT_SURFACE, GP_REPROJECT_TOP, GP_REPROJECT_VIEW, gpencil_strokes_edit3d_poll(), gpencil_strokes_reproject_exec(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_sculptmode_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 541 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_sculptmode_toggle_exec(), gpencil_sculptmode_toggle_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_selection_opacity_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 810 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_hideselect_toggle_exec(), gpencil_stroke_edit_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_selectmode_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 313 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_selectmode_toggle_exec(), gpencil_selectmode_toggle_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_snap_cursor_to_selected | ( | wmOperatorType * | ot | ) |
Definition at line 3169 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_snap_cursor_to_sel(), gpencil_snap_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_snap_to_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 3040 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_snap_poll(), gpencil_snap_to_cursor(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_snap_to_grid | ( | wmOperatorType * | ot | ) |
Definition at line 2938 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_snap_poll(), gpencil_snap_to_grid(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_apply_thickness | ( | wmOperatorType * | ot | ) |
Definition at line 3224 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, gpencil_active_layer_poll(), gpencil_stroke_apply_thickness_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_caps_set | ( | struct wmOperatorType * | ot | ) |
Change Stroke caps mode Rounded or Flat
Definition at line 3480 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_STROKE_CAPS_TOGGLE_BOTH, GP_STROKE_CAPS_TOGGLE_DEFAULT, GP_STROKE_CAPS_TOGGLE_END, GP_STROKE_CAPS_TOGGLE_START, gpencil_active_layer_poll(), gpencil_stroke_caps_set_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_cutter | ( | wmOperatorType * | ot | ) |
Definition at line 5325 of file gpencil_edit.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_cutter_exec(), gpencil_cutter_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, WM_gesture_lasso_cancel(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), and WM_operator_properties_gesture_lasso().
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_cyclical_set | ( | struct wmOperatorType * | ot | ) |
Similar to CURVE_OT_cyclic_toggle or MASK_OT_cyclic_toggle, but with option to force opened/closed strokes instead of just toggle behavior.
Definition at line 3357 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_STROKE_CYCLIC_CLOSE, GP_STROKE_CYCLIC_OPEN, GP_STROKE_CYCLIC_TOGGLE, gpencil_active_layer_poll(), gpencil_cyclical_set_curve_edit_poll_property(), gpencil_stroke_cyclical_set_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::poll_property, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_flip | ( | wmOperatorType * | ot | ) |
Definition at line 3784 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_stroke_flip_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_join | ( | wmOperatorType * | ot | ) |
Definition at line 3687 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_STROKE_JOIN, GP_STROKE_JOINCOPY, gpencil_active_layer_poll(), gpencil_stroke_join_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_merge_by_distance | ( | wmOperatorType * | ot | ) |
Definition at line 5424 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_merge_by_distance_exec(), gpencil_merge_by_distance_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_normalize | ( | wmOperatorType * | ot | ) |
Definition at line 5593 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_NORMALIZE_OPACITY, GP_NORMALIZE_THICKNESS, gpencil_stroke_normalize_exec(), gpencil_stroke_normalize_poll(), gpencil_stroke_normalize_ui(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_float(), RNA_def_int(), wmOperatorType::srna, and wmOperatorType::ui.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_sample | ( | wmOperatorType * | ot | ) |
Definition at line 4476 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_stroke_not_in_curve_edit_mode(), gpencil_stroke_sample_exec(), wmOperatorType::idname, M_PI, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_float(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_separate | ( | wmOperatorType * | ot | ) |
Definition at line 4851 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_SEPARATE_LAYER, GP_SEPARATE_POINT, GP_SEPARATE_STROKE, gpencil_stroke_separate_exec(), gpencil_strokes_edit3d_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_simplify | ( | wmOperatorType * | ot | ) |
Definition at line 4365 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_stroke_simplify_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_float(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_simplify_fixed | ( | wmOperatorType * | ot | ) |
Definition at line 4426 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_stroke_simplify_fixed_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 5011 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_stroke_not_in_curve_edit_mode(), gpencil_stroke_smooth_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float(), RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_split | ( | wmOperatorType * | ot | ) |
Definition at line 4972 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_stroke_split_exec(), gpencil_strokes_edit3d_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_subdivide | ( | wmOperatorType * | ot | ) |
Definition at line 4287 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_stroke_subdivide_exec(), gpencil_subdivide_curve_edit_poll_property(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::poll_property, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float(), RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_trim | ( | wmOperatorType * | ot | ) |
Definition at line 4561 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_stroke_trim_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertexmode_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 760 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertexmode_toggle_exec(), gpencil_vertexmode_toggle_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_weightmode_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 649 of file gpencil_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_weightmode_toggle_exec(), gpencil_weightmode_toggle_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
|
static |
Definition at line 350 of file gpencil_edit.c.
References BKE_brush_gpencil_paint_presets(), BKE_gpencil_palette_ensure(), BKE_paint_ensure(), BKE_paint_toolslots_brush_validate(), Paint::brush, C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_message_bus(), Object::data, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_setup_modes(), bGPdata::flag, G, GP_DATA_STROKE_PAINTMODE, ToolSettings::gp_paint, ToolSettings::gp_vertexpaint, Brush::gpencil_settings, bGPdata::id, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, NULL, OB_GPENCIL, OB_MODE_OBJECT, OB_MODE_PAINT_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, GpPaint::paint, wmOperator::ptr, Object::restore_mode, RNA_boolean_get(), Object::type, WM_event_add_notifier(), WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by GPENCIL_OT_paintmode_toggle().
Definition at line 340 of file gpencil_edit.c.
References C, CTX_data_active_object(), Object::data, ED_gpencil_data_get_active(), NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_paintmode_toggle().
|
static |
Definition at line 3949 of file gpencil_edit.c.
References BKE_gpencil_stroke_geometry_update(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OB_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::type, and WM_event_add_notifier().
Referenced by GPENCIL_OT_recalc_geometry().
|
static |
Definition at line 466 of file gpencil_edit.c.
References BKE_brush_gpencil_sculpt_presets(), BKE_paint_ensure(), BKE_paint_toolslots_brush_validate(), Paint::brush, C, CTX_data_active_object(), CTX_data_main(), CTX_data_tool_settings(), CTX_wm_message_bus(), Object::data, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_setup_modes(), bGPdata::flag, G, GP_DATA_STROKE_SCULPTMODE, ToolSettings::gp_sculptpaint, bGPdata::id, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, NULL, OB_GPENCIL, OB_MODE_OBJECT, OB_MODE_SCULPT_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, GpSculptPaint::paint, wmOperator::ptr, Object::restore_mode, RNA_boolean_get(), Object::type, WM_event_add_notifier(), WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by GPENCIL_OT_sculptmode_toggle().
Definition at line 456 of file gpencil_edit.c.
References C, CTX_data_active_object(), Object::data, ED_gpencil_data_get_active(), NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_sculptmode_toggle().
|
static |
Definition at line 271 of file gpencil_edit.c.
References C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), CTX_data_tool_settings(), Object::data, DEG_id_tag_update(), bGPDspoint::flag, GP_SELECTMODE_STROKE, GP_SPOINT_SELECT, GP_STROKE_SELECT, ToolSettings::gpencil_selectmode_edit, bGPdata::id, Scene::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_SELECTED, NC_GPENCIL, NC_SCENE, ND_TOOLSETTINGS, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), scene, WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by GPENCIL_OT_selectmode_toggle().
Definition at line 260 of file gpencil_edit.c.
References C, CTX_data_active_object(), ED_operator_view3d_active(), Object::mode, NULL, OB_GPENCIL, OB_MODE_EDIT_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_selectmode_toggle().
|
static |
Definition at line 3993 of file gpencil_edit.c.
References BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_smooth_point(), BKE_gpencil_stroke_smooth_strength(), BKE_gpencil_stroke_smooth_thickness(), BKE_gpencil_stroke_smooth_uv(), C, GP_EDITABLE_STROKES_BEGIN, GP_EDITABLE_STROKES_END, GP_SPOINT_SELECT, GP_STROKE_NEEDS_CURVE_UPDATE, GP_STROKE_SELECT, MEM_dupallocN, MEM_freeN, bGPDstroke::points, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), and RNA_int_get().
Referenced by gpencil_stroke_smooth_exec(), and gpencil_stroke_subdivide_exec().
|
static |
Definition at line 3126 of file gpencil_edit.c.
References BKE_report(), bool, C, copy_v3_v3(), count, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), Scene::cursor, DEG_id_tag_update(), depsgraph, ED_gpencil_data_get_active(), GPENCIL_CURVE_EDIT_SESSIONS_ON, gpencil_stroke_points_centroid(), Scene::id, ID_RECALC_COPY_ON_WRITE, INIT_MINMAX, View3DCursor::location, max, mid_v3_v3v3(), min, mul_v3_fl(), NC_SPACE, ND_SPACE_VIEW3D, NULL, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, scene, Scene::toolsettings, ToolSettings::transform_pivot_point, V3D_AROUND_CENTER_BOUNDS, WM_event_add_notifier(), and zero_v3().
Referenced by GPENCIL_OT_snap_cursor_to_selected().
Definition at line 2819 of file gpencil_edit.c.
References blender::compositor::area(), C, CTX_data_active_object(), CTX_wm_area(), NULL, OB_GPENCIL, SPACE_VIEW3D, and Object::type.
Referenced by GPENCIL_OT_snap_cursor_to_selected(), GPENCIL_OT_snap_to_cursor(), and GPENCIL_OT_snap_to_grid().
|
static |
Definition at line 2959 of file gpencil_edit.c.
References add_v3_v3(), BKE_gpencil_layer_is_editable(), BKE_gpencil_layer_transform_matrix_get(), BKE_report(), bool, C, copy_v3_v3(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), Scene::cursor, DEG_id_tag_update(), depsgraph, ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), bGPDspoint::flag, GP_SPOINT_SELECT, GP_STROKE_SELECT, gpencil_apply_parent_point(), GPENCIL_CURVE_EDIT_SESSIONS_ON, bGPdata::id, Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, View3DCursor::location, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, offset, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, scene, bGPDframe::strokes, sub_v3_v3v3(), WM_event_add_notifier(), and bGPDspoint::x.
Referenced by GPENCIL_OT_snap_to_cursor().
|
static |
Definition at line 2828 of file gpencil_edit.c.
References add_v3_v3(), bGPDcurve_point::bezt, BKE_gpencil_editcurve_recalculate_handles(), BKE_gpencil_layer_is_editable(), BKE_gpencil_layer_transform_matrix_get(), BKE_gpencil_stroke_geometry_update(), bool, C, copy_v3_v3(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), bGPDcurve::curve_points, DEG_id_tag_update(), depsgraph, ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), ED_view3d_grid_view_scale(), bGPDspoint::flag, bGPDcurve_point::flag, floorf, GP_CURVE_POINT_SELECT, GP_SPOINT_SELECT, GP_STROKE_NEEDS_CURVE_UPDATE, gpencil_apply_parent_point(), GPENCIL_CURVE_EDIT_SESSIONS_ON, bGPdata::id, Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, invert_m4_m4_safe(), bGPdata::layers, LISTBASE_FOREACH, mul_v3_m4v3(), NA_EDITED, NC_GPENCIL, ND_DATA, NULL, offset, OPERATOR_FINISHED, scene, bGPDframe::strokes, bGPDcurve::tot_curve_points, BezTriple::vec, WM_event_add_notifier(), and bGPDspoint::x.
Referenced by GPENCIL_OT_snap_to_grid().
|
static |
Definition at line 3190 of file gpencil_edit.c.
References BKE_gpencil_layer_active_get(), C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, ListBase::first, bGPDlayer::frames, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPDlayer::line_change, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDlayer::thickness, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_apply_thickness().
|
static |
Definition at line 3401 of file gpencil_edit.c.
References BKE_gpencil_material_settings(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ELEM, MaterialGPencilStyle::flag, GP_FRAME_SELECT, GP_MATERIAL_HIDE, GP_MATERIAL_LOCKED, GP_STROKE_CAP_MAX, GP_STROKE_CAP_ROUND, GP_STROKE_CAPS_TOGGLE_BOTH, GP_STROKE_CAPS_TOGGLE_DEFAULT, GP_STROKE_CAPS_TOGGLE_END, GP_STROKE_CAPS_TOGGLE_START, GP_STROKE_SELECT, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDstroke::next, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), type, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_caps_set().
|
static |
Definition at line 3248 of file gpencil_edit.c.
References BKE_gpencil_editcurve_recalculate_handles(), BKE_gpencil_material_settings(), BKE_gpencil_stroke_close(), BKE_gpencil_stroke_geometry_update(), BLI_assert, bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ELEM, bGPDstroke::flag, MaterialGPencilStyle::flag, GP_FRAME_SELECT, GP_MATERIAL_HIDE, GP_MATERIAL_LOCKED, GP_STROKE_CYCLIC, GP_STROKE_CYCLIC_CLOSE, GP_STROKE_CYCLIC_OPEN, GP_STROKE_CYCLIC_TOGGLE, GP_STROKE_NEEDS_CURVE_UPDATE, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPDstroke::mat_nr, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDstroke::next, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), type, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_cyclical_set().
Definition at line 90 of file gpencil_edit.c.
References C, CTX_data_active_object(), CTX_DATA_COUNT, NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_copy(), GPENCIL_OT_delete(), GPENCIL_OT_dissolve(), GPENCIL_OT_duplicate(), GPENCIL_OT_extrude(), GPENCIL_OT_move_to_layer(), GPENCIL_OT_selection_opacity_toggle(), and gpencil_strokes_edit3d_poll().
|
static |
Definition at line 3722 of file gpencil_edit.c.
References BKE_gpencil_stroke_flip(), BKE_report(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), ELEM, GP_FRAME_SELECT, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_flip().
|
static |
Alloc memory.
Definition at line 3568 of file gpencil_edit.c.
References BKE_gpencil_free_stroke(), BKE_gpencil_layer_active_get(), BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_join(), BKE_reportf(), BLI_assert, BLI_insertlinkbefore(), BLI_remlink(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), ELEM, bGPDstroke::flag, bGPDlayer::flag, GP_LAYER_LOCKED, GP_STROKE_CYCLIC, GP_STROKE_JOIN, GP_STROKE_JOINCOPY, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, gpencil_get_nearest_stroke_index(), tJoinStrokes::gpf, tJoinStrokes::gps, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH, MEM_malloc_arrayN, MEM_SAFE_FREE, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_WARNING, bGPDframe::strokes, type, tJoinStrokes::used, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_join().
|
static |
Definition at line 5499 of file gpencil_edit.c.
References BKE_gpencil_stroke_geometry_update(), bool, C, CLAMP, CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ELEM, GP_CURVE_SELECT, GP_FRAME_SELECT, GP_NORMALIZE_OPACITY, GP_NORMALIZE_THICKNESS, GP_STROKE_NEEDS_CURVE_UPDATE, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH, max_ff(), max_ii(), NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDspoint::pressure, bGPDcurve_point::pressure, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_int_get(), bGPDspoint::strength, bGPDcurve_point::strength, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_normalize().
Definition at line 5461 of file gpencil_edit.c.
References BKE_gpencil_layer_active_get(), C, CTX_data_active_object(), Object::data, if(), Object::mode, NULL, OB_GPENCIL, OB_MODE_EDIT_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_stroke_normalize().
|
static |
Definition at line 5477 of file gpencil_edit.c.
References GP_NORMALIZE_OPACITY, GP_NORMALIZE_THICKNESS, wmOperator::layout, NULL, wmOperator::ptr, RNA_enum_get(), uiItemR(), uiLayoutRow(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GPENCIL_OT_stroke_normalize().
Definition at line 134 of file gpencil_edit.c.
References BKE_gpencil_layer_active_get(), C, CTX_data_active_object(), Object::data, GPENCIL_CURVE_EDIT_SESSIONS_ON, NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_stroke_sample(), and GPENCIL_OT_stroke_smooth().
|
static |
Definition at line 3068 of file gpencil_edit.c.
References add_v3_v3(), BKE_gpencil_layer_is_editable(), BKE_gpencil_layer_transform_matrix_get(), C, depsgraph, ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), bGPDspoint::flag, GP_SPOINT_SELECT, GP_STROKE_SELECT, bGPdata::layers, LISTBASE_FOREACH, minmax_v3v3_v3(), mul_v3_m4v3(), NULL, bGPDframe::strokes, and bGPDspoint::x.
Referenced by gpencil_snap_cursor_to_sel().
|
static |
Definition at line 4450 of file gpencil_edit.c.
References BKE_gpencil_stroke_sample(), C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, GP_EDITABLE_STROKES_BEGIN, GP_EDITABLE_STROKES_END, GP_STROKE_SELECT, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, blender::math::length(), NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_sample().
|
static |
Definition at line 4591 of file gpencil_edit.c.
References Object::actcol, BKE_defgroup_copy_list(), BKE_gpencil_data_addnew(), BKE_gpencil_layer_active_get(), BKE_gpencil_layer_active_set(), BKE_gpencil_layer_addnew(), BKE_gpencil_layer_copy_settings(), BKE_gpencil_layer_frame_get(), BKE_gpencil_layer_mask_cleanup_all_layers(), BKE_gpencil_layer_mask_copy(), BKE_gpencil_material(), BKE_gpencil_object_material_ensure(), BKE_gpencil_stroke_delete_tagged_points(), BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_select_index_reset(), BKE_object_material_slot_remove(), BKE_object_material_slot_used(), BKE_report(), BLI_addtail(), BLI_listbase_is_single(), BLI_remlink(), bool, C, CTX_data_active_base(), CTX_data_active_gpencil_layer(), CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_layer_has_selected_stroke(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), ED_object_add_duplicate(), ED_outliner_select_sync_from_object_tag(), ELEM, ListBase::first, bGPDspoint::flag, bGPDlayer::frames, GP_FRAME_SELECT, GP_GETFRAME_ADD_NEW, GP_SEPARATE_LAYER, GP_SEPARATE_POINT, GP_SEPARATE_STROKE, GP_SPOINT_SELECT, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, id_us_min(), bGPdata::layers, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, bGPDstroke::mat_nr, Object::mode, NA_EDITED, NA_SELECTED, ID::name, NC_GPENCIL, NC_OBJECT, ND_DATA, ND_DRAW, bGPDframe::next, bGPDlayer::next, NULL, OB_MODE_OBJECT, Base::object, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDstroke::points, bGPDlayer::prev, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, scene, bGPDframe::strokes, Object::totcol, USER_DUP_ACT, bGPdata::vertex_group_active_index, bGPdata::vertex_group_names, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_separate().
|
static |
Definition at line 4328 of file gpencil_edit.c.
References BKE_gpencil_stroke_simplify_adaptive(), BKE_report(), bool, C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, GP_EDITABLE_STROKES_BEGIN, GP_EDITABLE_STROKES_END, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_float_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_simplify().
|
static |
Definition at line 4388 of file gpencil_edit.c.
References BKE_gpencil_stroke_simplify_fixed(), BKE_report(), bool, C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, GP_EDITABLE_STROKES_BEGIN, GP_EDITABLE_STROKES_END, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_int_get(), RPT_ERROR, steps, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_simplify_fixed().
|
static |
Definition at line 4993 of file gpencil_edit.c.
References C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, gpencil_smooth_stroke(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_smooth().
|
static |
Definition at line 4883 of file gpencil_edit.c.
References BKE_gpencil_stroke_delete_tagged_points(), BKE_gpencil_stroke_duplicate(), BKE_report(), BLI_addtail(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), ELEM, bGPDspoint::flag, GP_FRAME_SELECT, GP_SPOINT_SELECT, GP_SPOINT_TAG, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDstroke::points, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_split().
|
static |
Definition at line 4076 of file gpencil_edit.c.
References CLAMP, copy_v3_v3(), copy_v4_v4(), bGPDstroke::dvert, MDeformVert::dw, bGPDspoint::flag, bGPDstroke::flag, GP_SPOINT_SELECT, GP_STROKE_CYCLIC, gpencil_count_subdivision_cuts(), GPENCIL_STRENGTH_MIN, interp_v3_v3v3(), interp_v4_v4v4(), interpf(), MEM_dupallocN, MEM_recallocN, MEM_SAFE_FREE, next, NULL, bGPDstroke::points, bGPDspoint::pressure, bGPDspoint::strength, bGPDspoint::time, bGPDstroke::totpoints, MDeformVert::totweight, bGPDspoint::vert_color, MDeformWeight::weight, and bGPDspoint::x.
Referenced by gpencil_stroke_subdivide_exec().
|
static |
Definition at line 4218 of file gpencil_edit.c.
References BKE_gpencil_editcurve_recalculate_handles(), BKE_gpencil_editcurve_subdivide(), BKE_gpencil_stroke_geometry_update(), bool, C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, GP_CURVE_SELECT, GP_EDITABLE_CURVES_BEGIN, GP_EDITABLE_CURVES_END, GP_EDITABLE_STROKES_BEGIN, GP_EDITABLE_STROKES_END, GP_STROKE_NEEDS_CURVE_UPDATE, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, gpencil_smooth_stroke(), gpencil_stroke_subdivide(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_subdivide().
|
static |
Definition at line 4506 of file gpencil_edit.c.
References BKE_gpencil_stroke_trim(), BKE_report(), bool, C, CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ELEM, GP_FRAME_SELECT, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH_MUTABLE, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_trim().
|
static |
Definition at line 1482 of file gpencil_edit.c.
References BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_weights_duplicate(), BKE_object_material_get(), BKE_report(), BLI_addtail(), BLI_ghash_ensure_p(), BLI_ghash_int_new(), BLI_ghash_lookup(), BLI_strncpy(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), bGPDstroke::dvert, ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_strokes_copybuf_free(), ListBase::first, bGPDstroke::flag, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, gpencil_duplicate_points(), GPENCIL_MULTIEDIT_SESSIONS_ON, gpencil_strokes_copypastebuf, gpencil_strokes_copypastebuf_colors, gpencil_strokes_copypastebuf_colors_material_to_name_create(), gpencil_strokes_copypastebuf_colors_material_to_name_free(), LISTBASE_FOREACH, MEM_dupallocN, NC_GPENCIL, ND_DATA, bGPDstroke::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDstroke::points, bGPDstroke::prev, wmOperator::reports, RPT_ERROR, bGPDstroke::runtime, bGPDframe::strokes, bGPDstroke_Runtime::tmp_layerinfo, bGPDstroke::totpoints, and WM_event_add_notifier().
Referenced by GPENCIL_OT_copy().
Definition at line 1382 of file gpencil_edit.c.
References BKE_id_to_unique_string_key(), BLI_ghash_insert(), BLI_ghash_ptr_new(), ListBase::first, Main::materials, and NULL.
Referenced by gpencil_strokes_copy_exec().
Definition at line 1394 of file gpencil_edit.c.
References BLI_ghash_free(), MEM_freeN, and NULL.
Referenced by gpencil_strokes_copy_exec().
Definition at line 1399 of file gpencil_edit.c.
References BKE_id_to_unique_string_key(), BLI_ghash_insert(), BLI_ghash_str_new(), ListBase::first, Main::materials, and NULL.
Referenced by gpencil_copybuf_validate_colormap().
Definition at line 1411 of file gpencil_edit.c.
References BLI_ghash_free(), MEM_freeN, and NULL.
Referenced by gpencil_copybuf_validate_colormap().
Definition at line 103 of file gpencil_edit.c.
References C, CTX_data_active_object(), ED_operator_view3d_active(), gpencil_stroke_edit_poll(), NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_reproject(), GPENCIL_OT_stroke_separate(), and GPENCIL_OT_stroke_split().
|
static |
Definition at line 1631 of file gpencil_edit.c.
References bGPDlayer::actframe, BKE_gpencil_layer_active_get(), BKE_gpencil_layer_addnew(), BKE_gpencil_layer_frame_get(), BKE_gpencil_layer_is_editable(), BKE_gpencil_object_material_index_get(), BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_select_index_reset(), BKE_report(), BLI_addhead(), BLI_addtail(), BLI_findstring(), BLI_ghash_free(), BLI_ghash_lookup(), BLI_listbase_is_empty(), C, RenderData::cfra, CLAMP_MIN, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), Object::data, DATA_, DEG_id_tag_update(), ED_gpencil_stroke_can_use(), ListBase::first, bGPDspoint::flag, GP_COPY_TO_ACTIVE, GP_GETFRAME_ADD_NEW, GP_GETFRAME_USE_PREV, GP_SPOINT_SELECT, GP_STROKE_SELECT, gpencil_copybuf_validate_colormap(), GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, gpencil_strokes_copypastebuf, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, IS_AUTOKEY_ON, ListBase::last, bGPdata::layers, bGPDstroke::mat_nr, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDstroke::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, POINTER_FROM_INT, bGPDstroke::prev, wmOperator::ptr, Scene::r, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, bGPDstroke::runtime, scene, bGPDframe::strokes, bGPDstroke_Runtime::tmp_layerinfo, type, and WM_event_add_notifier().
Referenced by GPENCIL_OT_paste().
Definition at line 1610 of file gpencil_edit.c.
References blender::compositor::area(), BLI_listbase_is_empty(), C, CTX_wm_area(), ED_gpencil_data_get_active(), gpencil_strokes_copypastebuf, NULL, and SPACE_VIEW3D.
Referenced by GPENCIL_OT_paste().
|
static |
Definition at line 3805 of file gpencil_edit.c.
References BKE_gpencil_editcurve_stroke_sync_selection(), BKE_gpencil_stroke_editcurve_update(), BKE_gpencil_stroke_geometry_update(), BKE_scene_graph_update_for_newframe(), bool, C, RenderData::cfra, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), DEG_get_ctime(), DEG_id_tag_update(), depsgraph, ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_reproject(), ED_transform_snap_object_context_create(), ED_transform_snap_object_context_destroy(), bGPDframe::flag, GP_CURVE_SELECT, GP_FRAME_SELECT, GP_REPROJECT_SURFACE, GP_STROKE_NEEDS_CURVE_UPDATE, GP_STROKE_SELECT, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_MULTIEDIT_SESSIONS_ON, gpencil_point_conversion_init(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDstroke::next, bGPDframe::next, NULL, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, RNA_boolean_get(), RNA_enum_get(), scene, and WM_event_add_notifier().
Referenced by GPENCIL_OT_reproject().
|
static |
Definition at line 4271 of file gpencil_edit.c.
References C, ED_gpencil_data_get_active(), GPENCIL_CURVE_EDIT_SESSIONS_ON, NULL, RNA_property_identifier(), and STREQ.
Referenced by GPENCIL_OT_stroke_subdivide().
|
static |
Definition at line 5056 of file gpencil_edit.c.
References BLI_lasso_is_point_inside(), BLI_rcti_isect_pt(), data, ELEM, gpencil_point_to_parent_space(), gpencil_point_to_xy(), user_data, and V2D_IS_CLIPPED.
Referenced by gpencil_cutter_exec().
|
static |
Definition at line 686 of file gpencil_edit.c.
References BKE_brush_gpencil_vertex_presets(), BKE_gpencil_palette_ensure(), BKE_paint_ensure(), BKE_paint_toolslots_brush_validate(), Paint::brush, C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_message_bus(), Object::data, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_setup_modes(), bGPdata::flag, G, GP_DATA_STROKE_VERTEXMODE, ToolSettings::gp_paint, ToolSettings::gp_vertexpaint, bGPdata::id, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, NULL, OB_GPENCIL, OB_MODE_OBJECT, OB_MODE_VERTEX_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, GpVertexPaint::paint, wmOperator::ptr, Object::restore_mode, RNA_boolean_get(), Object::type, WM_event_add_notifier(), WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by GPENCIL_OT_vertexmode_toggle().
Definition at line 677 of file gpencil_edit.c.
References C, CTX_data_active_object(), Object::data, ED_gpencil_data_get_active(), NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_vertexmode_toggle().
|
static |
Definition at line 575 of file gpencil_edit.c.
References BKE_brush_gpencil_weight_presets(), BKE_paint_ensure(), BKE_paint_toolslots_brush_validate(), Paint::brush, C, CTX_data_active_object(), CTX_data_main(), CTX_data_tool_settings(), CTX_wm_message_bus(), Object::data, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_setup_modes(), ED_object_posemode_set_for_weight_paint(), bGPdata::flag, G, GP_DATA_STROKE_WEIGHTMODE, ToolSettings::gp_weightpaint, bGPdata::id, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, NULL, OB_GPENCIL, OB_MODE_OBJECT, OB_MODE_WEIGHT_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, GpWeightPaint::paint, wmOperator::ptr, Object::restore_mode, RNA_boolean_get(), Object::type, WM_event_add_notifier(), WM_msg_publish_rna_prop, and WM_toolsystem_update_from_context_view3d().
Referenced by GPENCIL_OT_weightmode_toggle().
Definition at line 565 of file gpencil_edit.c.
References C, CTX_data_active_object(), Object::data, ED_gpencil_data_get_active(), NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_weightmode_toggle().
Definition at line 1908 of file gpencil_edit.c.
References BLI_sprintfN(), BLI_strncpy(), bGPdata::layers, LISTBASE_FOREACH, and MEM_freeN.
Referenced by gpencil_move_to_layer_invoke().
list of bGPDstroke instances
Definition at line 1373 of file gpencil_edit.c.
Referenced by ED_gpencil_strokes_copybuf_free(), gpencil_brush_clone_add(), gpencil_brush_clone_init(), gpencil_sculpt_brush_init(), gpencil_strokes_copy_exec(), gpencil_strokes_paste_exec(), and gpencil_strokes_paste_poll().
Definition at line 1380 of file gpencil_edit.c.
Referenced by ED_gpencil_strokes_copybuf_free(), gpencil_copybuf_validate_colormap(), and gpencil_strokes_copy_exec().