Blender V4.5
gpencil_edit.cc File Reference
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.hh"
#include "BKE_gpencil_legacy.h"
#include "BKE_lib_id.hh"
#include "BKE_paint.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "UI_interface.hh"
#include "WM_api.hh"
#include "WM_message.hh"
#include "WM_toolsystem.hh"
#include "WM_types.hh"
#include "RNA_access.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_view3d.hh"
#include "DEG_depsgraph.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 wmOperatorStatus 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:

  • The copy operation collects all segments of selected strokes, dumping "ready to be copied" copies of the strokes into the buffer.
  • The paste operation makes a copy of those elements, and adds them to the active layer. This effectively flattens down the strokes from several different layers into a single layer.
ListBase gpencil_strokes_copypastebuf = {nullptr, nullptr}
static GHashgpencil_strokes_copypastebuf_colors = nullptr
void ED_gpencil_strokes_copybuf_free ()

Detailed Description

Operators for editing Grease Pencil strokes.

Definition in file gpencil_edit.cc.

Function Documentation

◆ annotation_actframe_delete_poll()

bool annotation_actframe_delete_poll ( bContext * C)
static

◆ ED_gpencil_strokes_copybuf_free()

◆ gpencil_actframe_delete_exec()

◆ GPENCIL_OT_annotation_active_frame_delete()

void GPENCIL_OT_annotation_active_frame_delete ( wmOperatorType * ot)

Variable Documentation

◆ gpencil_strokes_copypastebuf

ListBase gpencil_strokes_copypastebuf = {nullptr, nullptr}

list of bGPDstroke instances

Note
is exposed within the editors/gpencil module so that other tools can use it too.

Definition at line 63 of file gpencil_edit.cc.

Referenced by ED_gpencil_strokes_copybuf_free().

◆ gpencil_strokes_copypastebuf_colors

GHash* gpencil_strokes_copypastebuf_colors = nullptr
static

Definition at line 70 of file gpencil_edit.cc.

Referenced by ED_gpencil_strokes_copybuf_free().