Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c
- This file was moved from source/blender/modifiers/intern/MOD_gpencil_util.c.
| Show All 36 Lines | |||||
| #include "BLI_math_vector.h" | #include "BLI_math_vector.h" | ||||
| #include "BLI_math_color.h" | #include "BLI_math_color.h" | ||||
| #include "BLI_rand.h" | #include "BLI_rand.h" | ||||
| #include "DNA_meshdata_types.h" | #include "DNA_meshdata_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_gpencil_types.h" | #include "DNA_gpencil_types.h" | ||||
| #include "DNA_modifier_types.h" | #include "DNA_gpencil_modifier_types.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_lattice.h" | #include "BKE_lattice.h" | ||||
| #include "BKE_material.h" | #include "BKE_material.h" | ||||
| #include "BKE_gpencil.h" | #include "BKE_gpencil.h" | ||||
| #include "BKE_modifier.h" | #include "BKE_gpencil_modifier.h" | ||||
| #include "BKE_colortools.h" | #include "BKE_colortools.h" | ||||
| #include "MOD_gpencil_modifiertypes.h" | |||||
| #include "MOD_gpencil_util.h" | #include "MOD_gpencil_util.h" | ||||
| void gpencil_modifier_type_init(GpencilModifierTypeInfo *types[]) | |||||
| { | |||||
| #define INIT_GP_TYPE(typeName) (types[eGpencilModifierType_##typeName] = &modifierType_Gpencil_##typeName) | |||||
| INIT_GP_TYPE(Noise); | |||||
| INIT_GP_TYPE(Subdiv); | |||||
| INIT_GP_TYPE(Simplify); | |||||
| INIT_GP_TYPE(Thick); | |||||
| INIT_GP_TYPE(Tint); | |||||
| INIT_GP_TYPE(Color); | |||||
| INIT_GP_TYPE(Instance); | |||||
| INIT_GP_TYPE(Build); | |||||
| INIT_GP_TYPE(Opacity); | |||||
| INIT_GP_TYPE(Lattice); | |||||
| INIT_GP_TYPE(Smooth); | |||||
| INIT_GP_TYPE(Hook); | |||||
| INIT_GP_TYPE(Offset); | |||||
| #undef INIT_GP_TYPE | |||||
| } | |||||
| /* verify if valid layer and pass index */ | /* verify if valid layer and pass index */ | ||||
| bool is_stroke_affected_by_modifier( | bool is_stroke_affected_by_modifier( | ||||
| Object *ob, char *mlayername, int mpassindex, int minpoints, | Object *ob, char *mlayername, int mpassindex, int minpoints, | ||||
| bGPDlayer *gpl, bGPDstroke *gps, bool inv1, bool inv2) | bGPDlayer *gpl, bGPDstroke *gps, bool inv1, bool inv2) | ||||
| { | { | ||||
| MaterialGPencilStyle *gp_style = BKE_material_gpencil_settings_get(ob, gps->mat_nr + 1); | MaterialGPencilStyle *gp_style = BKE_material_gpencil_settings_get(ob, gps->mat_nr + 1); | ||||
| /* omit if filter by layer */ | /* omit if filter by layer */ | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||