Blender  V3.3
Typedefs | Functions
MOD_gpencil_util.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* gpBakeCb) (struct GpencilModifierData *md_, struct Depsgraph *depsgraph_, struct Object *ob_, struct bGPDlayer *gpl_, struct bGPDframe *gpf_, struct bGPDstroke *gps_)
 

Functions

bool is_stroke_affected_by_modifier (struct Object *ob, char *mlayername, struct Material *material, int mpassindex, int gpl_passindex, int minpoints, bGPDlayer *gpl, bGPDstroke *gps, bool inv1, bool inv2, bool inv3, bool inv4)
 
float get_modifier_point_weight (struct MDeformVert *dvert, bool inverse, int def_nr)
 
void generic_bake_deform_stroke (struct Depsgraph *depsgraph, struct GpencilModifierData *md, struct Object *ob, bool retime, gpBakeCb bake_cb)
 

Typedef Documentation

◆ gpBakeCb

typedef void(* gpBakeCb) (struct GpencilModifierData *md_, struct Depsgraph *depsgraph_, struct Object *ob_, struct bGPDlayer *gpl_, struct bGPDframe *gpf_, struct bGPDstroke *gps_)

Generic bake function for deformStroke.

Definition at line 42 of file MOD_gpencil_util.h.

Function Documentation

◆ generic_bake_deform_stroke()

void generic_bake_deform_stroke ( struct Depsgraph depsgraph,
struct GpencilModifierData md,
struct Object ob,
bool  retime,
gpBakeCb  bake_cb 
)

◆ get_modifier_point_weight()

float get_modifier_point_weight ( struct MDeformVert dvert,
bool  inverse,
int  def_nr 
)

Verify if valid vertex group *and return weight.

Definition at line 142 of file MOD_gpencil_util.c.

References BKE_defvert_find_index(), inverse(), NULL, and MDeformWeight::weight.

Referenced by apply_stroke_envelope(), and deformStroke().

◆ is_stroke_affected_by_modifier()

bool is_stroke_affected_by_modifier ( struct Object ob,
char *  mlayername,
struct Material material,
int  mpassindex,
int  gpl_passindex,
int  minpoints,
bGPDlayer gpl,
bGPDstroke gps,
bool  inv1,
bool  inv2,
bool  inv3,
bool  inv4 
)