Blender V5.0
grease_pencil_trim.cc File Reference
#include "BLI_array.hh"
#include "BLI_lasso_2d.hh"
#include "BLI_rect.h"
#include "BLI_task.hh"
#include "DNA_brush_types.h"
#include "BKE_brush.hh"
#include "BKE_context.hh"
#include "BKE_crazyspace.hh"
#include "BKE_curves.hh"
#include "BKE_paint.hh"
#include "DEG_depsgraph_query.hh"
#include "ED_grease_pencil.hh"
#include "ED_view3d.hh"
#include "RNA_access.hh"
#include "WM_api.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::greasepencil

Functions

static bool blender::ed::greasepencil::execute_trim_on_drawing (const int layer_index, const Object &ob_eval, Object &obact, const ARegion &region, const float4x4 &projection, const Span< int2 > mcoords, const bool keep_caps, bke::greasepencil::Drawing &drawing)
static wmOperatorStatus blender::ed::greasepencil::stroke_trim_execute (const bContext *C, const Span< int2 > mcoords)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_stroke_trim_exec (bContext *C, wmOperator *op)
void GREASE_PENCIL_OT_stroke_trim (wmOperatorType *ot)

Variables

static constexpr int blender::ed::greasepencil::BBOX_PADDING = 2

Function Documentation

◆ GREASE_PENCIL_OT_stroke_trim()