Blender
V3.3
|
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 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.
void generic_bake_deform_stroke | ( | struct Depsgraph * | depsgraph, |
struct GpencilModifierData * | md, | ||
struct Object * | ob, | ||
bool | retime, | ||
gpBakeCb | bake_cb | ||
) |
Definition at line 175 of file MOD_gpencil_util.c.
References BKE_scene_graph_update_for_newframe(), RenderData::cfra, Object::data, DEG_get_ctime(), DEG_get_evaluated_scene(), depsgraph, bGPdata::layers, LISTBASE_FOREACH, Scene::r, and scene.
Referenced by bakeModifier().
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().
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 | ||
) |
Verify if valid layer, material and pass index.
Definition at line 63 of file MOD_gpencil_util.c.
References BKE_gpencil_material(), DEG_get_original_id(), Material::gp_style, Material::id, MaterialGPencilStyle::index, bGPDlayer::info, bGPDstroke::mat_nr, material, NULL, bGPDlayer::pass_index, STREQ, and bGPDstroke::totpoints.
Referenced by apply_dash_for_frame(), deformStroke(), generate_geometry(), and gpencil_data_selected_minmax().