Blender
V3.3
|
#include <stdio.h>
#include "BLI_listbase.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_defaults.h"
#include "DNA_gpencil_modifier_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_gpencil.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_lib_query.h"
#include "BKE_modifier.h"
#include "BKE_screen.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "MOD_gpencil_modifiertypes.h"
#include "MOD_gpencil_ui_common.h"
#include "MOD_gpencil_util.h"
Go to the source code of this file.
Functions | |
static void | initData (GpencilModifierData *md) |
static void | copyData (const GpencilModifierData *md, GpencilModifierData *target) |
static void | deformStroke (GpencilModifierData *md, Depsgraph *UNUSED(depsgraph), Object *ob, bGPDlayer *gpl, bGPDframe *UNUSED(gpf), bGPDstroke *gps) |
static void | bakeModifier (struct Main *UNUSED(bmain), Depsgraph *depsgraph, GpencilModifierData *md, Object *ob) |
static void | foreachIDLink (GpencilModifierData *md, Object *ob, IDWalkFunc walk, void *userData) |
static bool | isDisabled (GpencilModifierData *md, int UNUSED(userRenderParams)) |
static void | panel_draw (const bContext *UNUSED(C), Panel *panel) |
static void | mask_panel_draw (const bContext *UNUSED(C), Panel *panel) |
static void | panelRegister (ARegionType *region_type) |
Variables | |
GpencilModifierTypeInfo | modifierType_Gpencil_WeightAngle |
|
static |
Definition at line 150 of file MOD_gpencilweight_angle.c.
References deformStroke(), depsgraph, and generic_bake_deform_stroke().
|
static |
Definition at line 52 of file MOD_gpencilweight_angle.c.
References BKE_gpencil_modifier_copydata_generic().
|
static |
Definition at line 58 of file MOD_gpencilweight_angle.c.
References angle(), WeightAngleGpencilModifierData::angle, angle_on_axis_v3v3_v3(), WeightAngleGpencilModifierData::axis, BKE_defvert_ensure_index(), BKE_gpencil_dvert_ensure(), BKE_object_defgroup_name_index(), CLAMP, bGPDstroke::dvert, WeightAngleGpencilModifierData::flag, get_modifier_point_weight(), GP_SPACE_LOCAL, GP_WEIGHT_INVERT_LAYER, GP_WEIGHT_INVERT_LAYERPASS, GP_WEIGHT_INVERT_MATERIAL, GP_WEIGHT_INVERT_OUTPUT, GP_WEIGHT_INVERT_PASS, GP_WEIGHT_INVERT_VGROUP, GP_WEIGHT_MULTIPLY_DATA, is_stroke_affected_by_modifier(), WeightAngleGpencilModifierData::layer_pass, WeightAngleGpencilModifierData::layername, M_PI_2, WeightAngleGpencilModifierData::material, WeightAngleGpencilModifierData::min_weight, mul_mat3_m4_v3(), mul_v3_m4v3(), NULL, Object::obmat, WeightAngleGpencilModifierData::pass_index, bGPDstroke::points, rotate_normalized_v3_v3v3fl(), KDL::sin(), WeightAngleGpencilModifierData::space, sub_v3_v3v3(), WeightAngleGpencilModifierData::target_vgname, bGPDstroke::totpoints, WeightAngleGpencilModifierData::vgname, MDeformWeight::weight, and bGPDspoint::x.
Referenced by bakeModifier().
|
static |
Definition at line 158 of file MOD_gpencilweight_angle.c.
References IDWALK_CB_USER, and WeightAngleGpencilModifierData::material.
|
static |
Definition at line 43 of file MOD_gpencilweight_angle.c.
References BLI_assert, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
|
static |
Definition at line 165 of file MOD_gpencilweight_angle.c.
References WeightAngleGpencilModifierData::target_vgname.
Definition at line 199 of file MOD_gpencilweight_angle.c.
References gpencil_modifier_masking_panel_draw().
Referenced by panelRegister().
Definition at line 172 of file MOD_gpencilweight_angle.c.
References gpencil_modifier_panel_end(), gpencil_modifier_panel_get_property_pointers(), Panel::layout, NULL, ptr, RNA_string_length(), uiItemPointerR(), uiItemR(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by panelRegister().
|
static |
Definition at line 204 of file MOD_gpencilweight_angle.c.
References eGpencilModifierType_WeightAngle, gpencil_modifier_panel_register(), gpencil_modifier_subpanel_register(), mask_panel_draw(), NULL, and panel_draw().
GpencilModifierTypeInfo modifierType_Gpencil_WeightAngle |
Definition at line 213 of file MOD_gpencilweight_angle.c.