|
Blender V4.3
|
#include <cmath>#include <cstddef>#include <cstdio>#include <cstdlib>#include <cstring>#include "DNA_object_enums.h"#include "MEM_guardedalloc.h"#include "BLI_ghash.h"#include "BLI_lasso_2d.hh"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "DNA_gpencil_legacy_types.h"#include "DNA_grease_pencil_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.hh"#include "BKE_context.hh"#include "BKE_deform.hh"#include "BKE_global.hh"#include "BKE_gpencil_curve_legacy.h"#include "BKE_gpencil_geom_legacy.h"#include "BKE_gpencil_legacy.h"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_material.h"#include "BKE_paint.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_toolsystem.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "UI_view2d.hh"#include "ED_gpencil_legacy.hh"#include "ED_image.hh"#include "ED_object.hh"#include "ED_outliner.hh"#include "ED_screen.hh"#include "ED_transform_snap_object_context.hh"#include "ED_view3d.hh"#include "ANIM_keyframing.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "DEG_depsgraph_query.hh"#include "gpencil_intern.hh"Go to the source code of this file.
Functions | |
Delete Active Frame Operator | |
| static bool | annotation_actframe_delete_poll (bContext *C) |
| static int | gpencil_actframe_delete_exec (bContext *C, wmOperator *op) |
| void | GPENCIL_OT_annotation_active_frame_delete (wmOperatorType *ot) |
Copy/Paste Strokes Utilities | |
Grease Pencil stroke data copy/paste buffer:
| |
| ListBase | gpencil_strokes_copypastebuf = {nullptr, nullptr} |
| static GHash * | gpencil_strokes_copypastebuf_colors = nullptr |
| void | ED_gpencil_strokes_copybuf_free () |
Operators for editing Grease Pencil strokes.
Definition in file gpencil_edit.cc.
|
static |
Definition at line 138 of file gpencil_edit.cc.
References bGPDlayer::actframe, BKE_gpencil_layer_active_get(), and ED_annotation_data_get_active().
Referenced by GPENCIL_OT_annotation_active_frame_delete().
| void ED_gpencil_strokes_copybuf_free | ( | ) |
Free copy/paste buffer data.
Definition at line 101 of file gpencil_edit.cc.
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, bGPDstroke::points, and bGPDstroke::triangles.
Referenced by WM_exit_ex().
|
static |
Definition at line 148 of file gpencil_edit.cc.
References BKE_gpencil_layer_active_get(), BKE_gpencil_layer_frame_delete(), BKE_gpencil_layer_frame_get(), BKE_report(), 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, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, STREQ, and WM_event_add_notifier().
Referenced by GPENCIL_OT_annotation_active_frame_delete().
| void GPENCIL_OT_annotation_active_frame_delete | ( | wmOperatorType * | ot | ) |
Definition at line 181 of file gpencil_edit.cc.
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_legacy().
| ListBase gpencil_strokes_copypastebuf = {nullptr, nullptr} |
list of bGPDstroke instances
Definition at line 92 of file gpencil_edit.cc.
Referenced by ED_gpencil_strokes_copybuf_free().
|
static |
Definition at line 99 of file gpencil_edit.cc.
Referenced by ED_gpencil_strokes_copybuf_free().