Cleanup: comments in struct declarations

Use a consistent style for declaring the names of struct members
in their declarations. Note that this convention was already used in
many places but not everywhere.

Remove spaces around the text (matching commented arguments) with
the advantage that the the spell checking utility skips these terms.
Making it possible to extract & validate these comments automatically.

Also use struct names for `bAnimChannelType` & `bConstraintTypeInfo`
which were using brief descriptions.
This commit is contained in:
Campbell Barton 2023-01-16 12:41:11 +11:00
parent b038662887
commit 33c30af742
161 changed files with 3806 additions and 3822 deletions

View File

@ -280,41 +280,41 @@ struct GWL_ModifierInfo {
};
static const GWL_ModifierInfo g_modifier_info_table[MOD_INDEX_NUM] = {
/* MOD_INDEX_SHIFT */
/*MOD_INDEX_SHIFT*/
{
/* display_name */ "Shift",
/* xkb_id */ XKB_MOD_NAME_SHIFT,
/* key_l */ GHOST_kKeyLeftShift,
/* key_r */ GHOST_kKeyRightShift,
/* mod_l */ GHOST_kModifierKeyLeftShift,
/* mod_r */ GHOST_kModifierKeyRightShift,
/*display_name*/ "Shift",
/*xkb_id*/ XKB_MOD_NAME_SHIFT,
/*key_l*/ GHOST_kKeyLeftShift,
/*key_r*/ GHOST_kKeyRightShift,
/*mod_l*/ GHOST_kModifierKeyLeftShift,
/*mod_r*/ GHOST_kModifierKeyRightShift,
},
/* MOD_INDEX_ALT */
/*MOD_INDEX_ALT*/
{
/* display_name */ "Alt",
/* xkb_id */ XKB_MOD_NAME_ALT,
/* key_l */ GHOST_kKeyLeftAlt,
/* key_r */ GHOST_kKeyRightAlt,
/* mod_l */ GHOST_kModifierKeyLeftAlt,
/* mod_r */ GHOST_kModifierKeyRightAlt,
/*display_name*/ "Alt",
/*xkb_id*/ XKB_MOD_NAME_ALT,
/*key_l*/ GHOST_kKeyLeftAlt,
/*key_r*/ GHOST_kKeyRightAlt,
/*mod_l*/ GHOST_kModifierKeyLeftAlt,
/*mod_r*/ GHOST_kModifierKeyRightAlt,
},
/* MOD_INDEX_CTRL */
/*MOD_INDEX_CTRL*/
{
/* display_name */ "Control",
/* xkb_id */ XKB_MOD_NAME_CTRL,
/* key_l */ GHOST_kKeyLeftControl,
/* key_r */ GHOST_kKeyRightControl,
/* mod_l */ GHOST_kModifierKeyLeftControl,
/* mod_r */ GHOST_kModifierKeyRightControl,
/*display_name*/ "Control",
/*xkb_id*/ XKB_MOD_NAME_CTRL,
/*key_l*/ GHOST_kKeyLeftControl,
/*key_r*/ GHOST_kKeyRightControl,
/*mod_l*/ GHOST_kModifierKeyLeftControl,
/*mod_r*/ GHOST_kModifierKeyRightControl,
},
/* MOD_INDEX_OS */
/*MOD_INDEX_OS*/
{
/* display_name */ "OS",
/* xkb_id */ XKB_MOD_NAME_LOGO,
/* key_l */ GHOST_kKeyLeftOS,
/* key_r */ GHOST_kKeyRightOS,
/* mod_l */ GHOST_kModifierKeyLeftOS,
/* mod_r */ GHOST_kModifierKeyRightOS,
/*display_name*/ "OS",
/*xkb_id*/ XKB_MOD_NAME_LOGO,
/*key_l*/ GHOST_kKeyLeftOS,
/*key_r*/ GHOST_kKeyRightOS,
/*mod_l*/ GHOST_kModifierKeyLeftOS,
/*mod_r*/ GHOST_kModifierKeyRightOS,
},
};

View File

@ -294,7 +294,7 @@ static void action_asset_pre_save(void *asset_ptr, struct AssetMetaData *asset_d
}
static AssetTypeInfo AssetType_AC = {
/* pre_save_fn */ action_asset_pre_save,
/*pre_save_fn*/ action_asset_pre_save,
};
IDTypeInfo IDType_ID_AC = {

View File

@ -411,33 +411,33 @@ static void brush_undo_preserve(BlendLibReader *reader, ID *id_new, ID *id_old)
}
IDTypeInfo IDType_ID_BR = {
/* id_code */ ID_BR,
/* id_filter */ FILTER_ID_BR,
/* main_listbase_index */ INDEX_ID_BR,
/* struct_size */ sizeof(Brush),
/* name */ "Brush",
/* name_plural */ "brushes",
/* translation_context */ BLT_I18NCONTEXT_ID_BRUSH,
/* flags */ IDTYPE_FLAGS_NO_ANIMDATA,
/* asset_type_info */ nullptr,
/*id_code*/ ID_BR,
/*id_filter*/ FILTER_ID_BR,
/*main_listbase_index*/ INDEX_ID_BR,
/*struct_size*/ sizeof(Brush),
/*name*/ "Brush",
/*name_plural*/ "brushes",
/*translation_context*/ BLT_I18NCONTEXT_ID_BRUSH,
/*flags*/ IDTYPE_FLAGS_NO_ANIMDATA,
/*asset_type_info*/ nullptr,
/* init_data */ brush_init_data,
/* copy_data */ brush_copy_data,
/* free_data */ brush_free_data,
/* make_local */ brush_make_local,
/* foreach_id */ brush_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ brush_foreach_path,
/* owner_pointer_get */ nullptr,
/*init_data*/ brush_init_data,
/*copy_data*/ brush_copy_data,
/*free_data*/ brush_free_data,
/*make_local*/ brush_make_local,
/*foreach_id*/ brush_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ brush_foreach_path,
/*owner_pointer_get*/ nullptr,
/* blend_write */ brush_blend_write,
/* blend_read_data */ brush_blend_read_data,
/* blend_read_lib */ brush_blend_read_lib,
/* blend_read_expand */ brush_blend_read_expand,
/*blend_write*/ brush_blend_write,
/*blend_read_data*/ brush_blend_read_data,
/*blend_read_lib*/ brush_blend_read_lib,
/*blend_read_expand*/ brush_blend_read_expand,
/* blend_read_undo_preserve */ brush_undo_preserve,
/*blend_read_undo_preserve*/ brush_undo_preserve,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
static RNG *brush_rng;

View File

@ -787,18 +787,18 @@ static void constraint_target_to_mat4(Object *ob,
*/
#if 0
static bConstraintTypeInfo CTI_CONSTRNAME = {
CONSTRAINT_TYPE_CONSTRNAME, /* type */
sizeof(bConstrNameConstraint), /* size */
"ConstrName", /* name */
"bConstrNameConstraint", /* struct name */
constrname_free, /* free data */
constrname_id_looper, /* id looper */
constrname_copy, /* copy data */
constrname_new_data, /* new data */
constrname_get_tars, /* get constraint targets */
constrname_flush_tars, /* flush constraint targets */
constrname_get_tarmat, /* get target matrix */
constrname_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_CONSTRNAME,
/*size*/ sizeof(bConstrNameConstraint),
/*name*/ "ConstrName",
/*structName*/ "bConstrNameConstraint",
/*free_data*/ constrname_free,
/*id_looper*/ constrname_id_looper,
/*copy_data*/ constrname_copy,
/*new_data*/ constrname_new_data,
/*get_constraint_targets*/ constrname_get_tars,
/*flush_constraint_targets*/ constrname_flush_tars,
/*get_target_matrix*/ constrname_get_tarmat,
/*evaluate_constraint*/ constrname_evaluate,
};
#endif
@ -1109,18 +1109,18 @@ static void childof_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *tar
/* XXX NOTE: con->flag should be CONSTRAINT_SPACEONCE for bone-childof, patched in `readfile.c`. */
static bConstraintTypeInfo CTI_CHILDOF = {
CONSTRAINT_TYPE_CHILDOF, /* type */
sizeof(bChildOfConstraint), /* size */
N_("Child Of"), /* name */
"bChildOfConstraint", /* struct name */
NULL, /* free data */
childof_id_looper, /* id looper */
NULL, /* copy data */
childof_new_data, /* new data */
childof_get_tars, /* get constraint targets */
childof_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get a target matrix */
childof_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_CHILDOF,
/*size*/ sizeof(bChildOfConstraint),
/*name*/ N_("Child Of"),
/*structName*/ "bChildOfConstraint",
/*free_data*/ NULL,
/*id_looper*/ childof_id_looper,
/*copy_data*/ NULL,
/*new_data*/ childof_new_data,
/*get_constraint_targets*/ childof_get_tars,
/*flush_constraint_targets*/ childof_flush_tars,
/* get a target matrix */ default_get_tarmat,
/*evaluate_constraint*/ childof_evaluate,
};
/* -------- TrackTo Constraint ------- */
@ -1293,18 +1293,18 @@ static void trackto_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *tar
}
static bConstraintTypeInfo CTI_TRACKTO = {
CONSTRAINT_TYPE_TRACKTO, /* type */
sizeof(bTrackToConstraint), /* size */
N_("Track To"), /* name */
"bTrackToConstraint", /* struct name */
NULL, /* free data */
trackto_id_looper, /* id looper */
NULL, /* copy data */
trackto_new_data, /* new data */
trackto_get_tars, /* get constraint targets */
trackto_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
trackto_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_TRACKTO,
/*size*/ sizeof(bTrackToConstraint),
/*name*/ N_("Track To"),
/*structName*/ "bTrackToConstraint",
/*free_data*/ NULL,
/*id_looper*/ trackto_id_looper,
/*copy_data*/ NULL,
/*new_data*/ trackto_new_data,
/*get_constraint_targets*/ trackto_get_tars,
/*flush_constraint_targets*/ trackto_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ trackto_evaluate,
};
/* --------- Inverse-Kinematics --------- */
@ -1399,18 +1399,18 @@ static void kinematic_get_tarmat(struct Depsgraph *UNUSED(depsgraph),
}
static bConstraintTypeInfo CTI_KINEMATIC = {
CONSTRAINT_TYPE_KINEMATIC, /* type */
sizeof(bKinematicConstraint), /* size */
N_("IK"), /* name */
"bKinematicConstraint", /* struct name */
NULL, /* free data */
kinematic_id_looper, /* id looper */
NULL, /* copy data */
kinematic_new_data, /* new data */
kinematic_get_tars, /* get constraint targets */
kinematic_flush_tars, /* flush constraint targets */
kinematic_get_tarmat, /* get target matrix */
NULL, /* evaluate - solved as separate loop */
/*type*/ CONSTRAINT_TYPE_KINEMATIC,
/*size*/ sizeof(bKinematicConstraint),
/*name*/ N_("IK"),
/*structName*/ "bKinematicConstraint",
/*free_data*/ NULL,
/*id_looper*/ kinematic_id_looper,
/*copy_data*/ NULL,
/*new_data*/ kinematic_new_data,
/*get_constraint_targets*/ kinematic_get_tars,
/*flush_constraint_targets*/ kinematic_flush_tars,
/*get_target_matrix*/ kinematic_get_tarmat,
/* evaluate - solved as separate loop */ NULL,
};
/* -------- Follow-Path Constraint ---------- */
@ -1577,18 +1577,18 @@ static void followpath_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *
}
static bConstraintTypeInfo CTI_FOLLOWPATH = {
CONSTRAINT_TYPE_FOLLOWPATH, /* type */
sizeof(bFollowPathConstraint), /* size */
N_("Follow Path"), /* name */
"bFollowPathConstraint", /* struct name */
NULL, /* free data */
followpath_id_looper, /* id looper */
NULL, /* copy data */
followpath_new_data, /* new data */
followpath_get_tars, /* get constraint targets */
followpath_flush_tars, /* flush constraint targets */
followpath_get_tarmat, /* get target matrix */
followpath_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_FOLLOWPATH,
/*size*/ sizeof(bFollowPathConstraint),
/*name*/ N_("Follow Path"),
/*structName*/ "bFollowPathConstraint",
/*free_data*/ NULL,
/*id_looper*/ followpath_id_looper,
/*copy_data*/ NULL,
/*new_data*/ followpath_new_data,
/*get_constraint_targets*/ followpath_get_tars,
/*flush_constraint_targets*/ followpath_flush_tars,
/*get_target_matrix*/ followpath_get_tarmat,
/*evaluate_constraint*/ followpath_evaluate,
};
/* --------- Limit Location --------- */
@ -1630,18 +1630,18 @@ static void loclimit_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *UN
}
static bConstraintTypeInfo CTI_LOCLIMIT = {
CONSTRAINT_TYPE_LOCLIMIT, /* type */
sizeof(bLocLimitConstraint), /* size */
N_("Limit Location"), /* name */
"bLocLimitConstraint", /* struct name */
NULL, /* free data */
NULL, /* id looper */
NULL, /* copy data */
NULL, /* new data */
NULL, /* get constraint targets */
NULL, /* flush constraint targets */
NULL, /* get target matrix */
loclimit_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_LOCLIMIT,
/*size*/ sizeof(bLocLimitConstraint),
/*name*/ N_("Limit Location"),
/*structName*/ "bLocLimitConstraint",
/*free_data*/ NULL,
/*id_looper*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ NULL,
/*get_constraint_targets*/ NULL,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ NULL,
/*evaluate_constraint*/ loclimit_evaluate,
};
/* -------- Limit Rotation --------- */
@ -1711,18 +1711,18 @@ static void rotlimit_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *UN
}
static bConstraintTypeInfo CTI_ROTLIMIT = {
CONSTRAINT_TYPE_ROTLIMIT, /* type */
sizeof(bRotLimitConstraint), /* size */
N_("Limit Rotation"), /* name */
"bRotLimitConstraint", /* struct name */
NULL, /* free data */
NULL, /* id looper */
NULL, /* copy data */
NULL, /* new data */
NULL, /* get constraint targets */
NULL, /* flush constraint targets */
NULL, /* get target matrix */
rotlimit_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_ROTLIMIT,
/*size*/ sizeof(bRotLimitConstraint),
/*name*/ N_("Limit Rotation"),
/*structName*/ "bRotLimitConstraint",
/*free_data*/ NULL,
/*id_looper*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ NULL,
/*get_constraint_targets*/ NULL,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ NULL,
/*evaluate_constraint*/ rotlimit_evaluate,
};
/* --------- Limit Scale --------- */
@ -1778,18 +1778,18 @@ static void sizelimit_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *U
}
static bConstraintTypeInfo CTI_SIZELIMIT = {
CONSTRAINT_TYPE_SIZELIMIT, /* type */
sizeof(bSizeLimitConstraint), /* size */
N_("Limit Scale"), /* name */
"bSizeLimitConstraint", /* struct name */
NULL, /* free data */
NULL, /* id looper */
NULL, /* copy data */
NULL, /* new data */
NULL, /* get constraint targets */
NULL, /* flush constraint targets */
NULL, /* get target matrix */
sizelimit_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_SIZELIMIT,
/*size*/ sizeof(bSizeLimitConstraint),
/*name*/ N_("Limit Scale"),
/*structName*/ "bSizeLimitConstraint",
/*free_data*/ NULL,
/*id_looper*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ NULL,
/*get_constraint_targets*/ NULL,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ NULL,
/*evaluate_constraint*/ sizelimit_evaluate,
};
/* ----------- Copy Location ------------- */
@ -1875,18 +1875,18 @@ static void loclike_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *tar
}
static bConstraintTypeInfo CTI_LOCLIKE = {
CONSTRAINT_TYPE_LOCLIKE, /* type */
sizeof(bLocateLikeConstraint), /* size */
N_("Copy Location"), /* name */
"bLocateLikeConstraint", /* struct name */
NULL, /* free data */
loclike_id_looper, /* id looper */
NULL, /* copy data */
loclike_new_data, /* new data */
loclike_get_tars, /* get constraint targets */
loclike_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
loclike_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_LOCLIKE,
/*size*/ sizeof(bLocateLikeConstraint),
/*name*/ N_("Copy Location"),
/*structName*/ "bLocateLikeConstraint",
/*free_data*/ NULL,
/*id_looper*/ loclike_id_looper,
/*copy_data*/ NULL,
/*new_data*/ loclike_new_data,
/*get_constraint_targets*/ loclike_get_tars,
/*flush_constraint_targets*/ loclike_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ loclike_evaluate,
};
/* ----------- Copy Rotation ------------- */
@ -2052,18 +2052,18 @@ static void rotlike_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *tar
}
static bConstraintTypeInfo CTI_ROTLIKE = {
CONSTRAINT_TYPE_ROTLIKE, /* type */
sizeof(bRotateLikeConstraint), /* size */
N_("Copy Rotation"), /* name */
"bRotateLikeConstraint", /* struct name */
NULL, /* free data */
rotlike_id_looper, /* id looper */
NULL, /* copy data */
rotlike_new_data, /* new data */
rotlike_get_tars, /* get constraint targets */
rotlike_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
rotlike_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_ROTLIKE,
/*size*/ sizeof(bRotateLikeConstraint),
/*name*/ N_("Copy Rotation"),
/*structName*/ "bRotateLikeConstraint",
/*free_data*/ NULL,
/*id_looper*/ rotlike_id_looper,
/*copy_data*/ NULL,
/*new_data*/ rotlike_new_data,
/*get_constraint_targets*/ rotlike_get_tars,
/*flush_constraint_targets*/ rotlike_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ rotlike_evaluate,
};
/* ---------- Copy Scale ---------- */
@ -2182,18 +2182,18 @@ static void sizelike_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *ta
}
static bConstraintTypeInfo CTI_SIZELIKE = {
CONSTRAINT_TYPE_SIZELIKE, /* type */
sizeof(bSizeLikeConstraint), /* size */
N_("Copy Scale"), /* name */
"bSizeLikeConstraint", /* struct name */
NULL, /* free data */
sizelike_id_looper, /* id looper */
NULL, /* copy data */
sizelike_new_data, /* new data */
sizelike_get_tars, /* get constraint targets */
sizelike_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
sizelike_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_SIZELIKE,
/*size*/ sizeof(bSizeLikeConstraint),
/*name*/ N_("Copy Scale"),
/*structName*/ "bSizeLikeConstraint",
/*free_data*/ NULL,
/*id_looper*/ sizelike_id_looper,
/*copy_data*/ NULL,
/*new_data*/ sizelike_new_data,
/*get_constraint_targets*/ sizelike_get_tars,
/*flush_constraint_targets*/ sizelike_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ sizelike_evaluate,
};
/* ----------- Copy Transforms ------------- */
@ -2288,18 +2288,18 @@ static void translike_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *t
}
static bConstraintTypeInfo CTI_TRANSLIKE = {
CONSTRAINT_TYPE_TRANSLIKE, /* type */
sizeof(bTransLikeConstraint), /* size */
N_("Copy Transforms"), /* name */
"bTransLikeConstraint", /* struct name */
NULL, /* free data */
translike_id_looper, /* id looper */
NULL, /* copy data */
NULL, /* new data */
translike_get_tars, /* get constraint targets */
translike_flush_tars, /* flush constraint targets */
default_get_tarmat_full_bbone, /* get target matrix */
translike_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_TRANSLIKE,
/*size*/ sizeof(bTransLikeConstraint),
/*name*/ N_("Copy Transforms"),
/*structName*/ "bTransLikeConstraint",
/*free_data*/ NULL,
/*id_looper*/ translike_id_looper,
/*copy_data*/ NULL,
/*new_data*/ NULL,
/*get_constraint_targets*/ translike_get_tars,
/*flush_constraint_targets*/ translike_flush_tars,
/*get_target_matrix*/ default_get_tarmat_full_bbone,
/*evaluate_constraint*/ translike_evaluate,
};
/* ---------- Maintain Volume ---------- */
@ -2357,18 +2357,18 @@ static void samevolume_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *
}
static bConstraintTypeInfo CTI_SAMEVOL = {
CONSTRAINT_TYPE_SAMEVOL, /* type */
sizeof(bSameVolumeConstraint), /* size */
N_("Maintain Volume"), /* name */
"bSameVolumeConstraint", /* struct name */
NULL, /* free data */
NULL, /* id looper */
NULL, /* copy data */
samevolume_new_data, /* new data */
NULL, /* get constraint targets */
NULL, /* flush constraint targets */
NULL, /* get target matrix */
samevolume_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_SAMEVOL,
/*size*/ sizeof(bSameVolumeConstraint),
/*name*/ N_("Maintain Volume"),
/*structName*/ "bSameVolumeConstraint",
/*free_data*/ NULL,
/*id_looper*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ samevolume_new_data,
/*get_constraint_targets*/ NULL,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ NULL,
/*evaluate_constraint*/ samevolume_evaluate,
};
/* ----------- Python Constraint -------------- */
@ -2489,18 +2489,18 @@ static void pycon_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *targe
}
static bConstraintTypeInfo CTI_PYTHON = {
CONSTRAINT_TYPE_PYTHON, /* type */
sizeof(bPythonConstraint), /* size */
N_("Script"), /* name */
"bPythonConstraint", /* struct name */
pycon_free, /* free data */
pycon_id_looper, /* id looper */
pycon_copy, /* copy data */
pycon_new_data, /* new data */
pycon_get_tars, /* get constraint targets */
NULL, /* flush constraint targets */
pycon_get_tarmat, /* get target matrix */
pycon_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_PYTHON,
/*size*/ sizeof(bPythonConstraint),
/*name*/ N_("Script"),
/*structName*/ "bPythonConstraint",
/*free_data*/ pycon_free,
/*id_looper*/ pycon_id_looper,
/*copy_data*/ pycon_copy,
/*new_data*/ pycon_new_data,
/*get_constraint_targets*/ pycon_get_tars,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ pycon_get_tarmat,
/*evaluate_constraint*/ pycon_evaluate,
};
/* ----------- Armature Constraint -------------- */
@ -2741,18 +2741,18 @@ static void armdef_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *targ
}
static bConstraintTypeInfo CTI_ARMATURE = {
CONSTRAINT_TYPE_ARMATURE, /* type */
sizeof(bArmatureConstraint), /* size */
N_("Armature"), /* name */
"bArmatureConstraint", /* struct name */
armdef_free, /* free data */
armdef_id_looper, /* id looper */
armdef_copy, /* copy data */
NULL, /* new data */
armdef_get_tars, /* get constraint targets */
NULL, /* flush constraint targets */
armdef_get_tarmat, /* get target matrix */
armdef_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_ARMATURE,
/*size*/ sizeof(bArmatureConstraint),
/*name*/ N_("Armature"),
/*structName*/ "bArmatureConstraint",
/*free_data*/ armdef_free,
/*id_looper*/ armdef_id_looper,
/*copy_data*/ armdef_copy,
/*new_data*/ NULL,
/*get_constraint_targets*/ armdef_get_tars,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ armdef_get_tarmat,
/*evaluate_constraint*/ armdef_evaluate,
};
/* -------- Action Constraint ----------- */
@ -2957,18 +2957,18 @@ static void actcon_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *targ
}
static bConstraintTypeInfo CTI_ACTION = {
CONSTRAINT_TYPE_ACTION, /* type */
sizeof(bActionConstraint), /* size */
N_("Action"), /* name */
"bActionConstraint", /* struct name */
NULL, /* free data */
actcon_id_looper, /* id looper */
NULL, /* copy data */
actcon_new_data, /* new data */
actcon_get_tars, /* get constraint targets */
actcon_flush_tars, /* flush constraint targets */
actcon_get_tarmat, /* get target matrix */
actcon_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_ACTION,
/*size*/ sizeof(bActionConstraint),
/*name*/ N_("Action"),
/*structName*/ "bActionConstraint",
/*free_data*/ NULL,
/*id_looper*/ actcon_id_looper,
/*copy_data*/ NULL,
/*new_data*/ actcon_new_data,
/*get_constraint_targets*/ actcon_get_tars,
/*flush_constraint_targets*/ actcon_flush_tars,
/*get_target_matrix*/ actcon_get_tarmat,
/*evaluate_constraint*/ actcon_evaluate,
};
/* --------- Locked Track ---------- */
@ -3273,18 +3273,18 @@ static void locktrack_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *t
}
static bConstraintTypeInfo CTI_LOCKTRACK = {
CONSTRAINT_TYPE_LOCKTRACK, /* type */
sizeof(bLockTrackConstraint), /* size */
N_("Locked Track"), /* name */
"bLockTrackConstraint", /* struct name */
NULL, /* free data */
locktrack_id_looper, /* id looper */
NULL, /* copy data */
locktrack_new_data, /* new data */
locktrack_get_tars, /* get constraint targets */
locktrack_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
locktrack_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_LOCKTRACK,
/*size*/ sizeof(bLockTrackConstraint),
/*name*/ N_("Locked Track"),
/*structName*/ "bLockTrackConstraint",
/*free_data*/ NULL,
/*id_looper*/ locktrack_id_looper,
/*copy_data*/ NULL,
/*new_data*/ locktrack_new_data,
/*get_constraint_targets*/ locktrack_get_tars,
/*flush_constraint_targets*/ locktrack_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ locktrack_evaluate,
};
/* ---------- Limit Distance Constraint ----------- */
@ -3416,18 +3416,18 @@ static void distlimit_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *t
}
static bConstraintTypeInfo CTI_DISTLIMIT = {
CONSTRAINT_TYPE_DISTLIMIT, /* type */
sizeof(bDistLimitConstraint), /* size */
N_("Limit Distance"), /* name */
"bDistLimitConstraint", /* struct name */
NULL, /* free data */
distlimit_id_looper, /* id looper */
NULL, /* copy data */
distlimit_new_data, /* new data */
distlimit_get_tars, /* get constraint targets */
distlimit_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get a target matrix */
distlimit_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_DISTLIMIT,
/*size*/ sizeof(bDistLimitConstraint),
/*name*/ N_("Limit Distance"),
/*structName*/ "bDistLimitConstraint",
/*free_data*/ NULL,
/*id_looper*/ distlimit_id_looper,
/*copy_data*/ NULL,
/*new_data*/ distlimit_new_data,
/*get_constraint_targets*/ distlimit_get_tars,
/*flush_constraint_targets*/ distlimit_flush_tars,
/* get a target matrix */ default_get_tarmat,
/*evaluate_constraint*/ distlimit_evaluate,
};
/* ---------- Stretch To ------------ */
@ -3624,18 +3624,18 @@ static void stretchto_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *t
}
static bConstraintTypeInfo CTI_STRETCHTO = {
CONSTRAINT_TYPE_STRETCHTO, /* type */
sizeof(bStretchToConstraint), /* size */
N_("Stretch To"), /* name */
"bStretchToConstraint", /* struct name */
NULL, /* free data */
stretchto_id_looper, /* id looper */
NULL, /* copy data */
stretchto_new_data, /* new data */
stretchto_get_tars, /* get constraint targets */
stretchto_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
stretchto_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_STRETCHTO,
/*size*/ sizeof(bStretchToConstraint),
/*name*/ N_("Stretch To"),
/*structName*/ "bStretchToConstraint",
/*free_data*/ NULL,
/*id_looper*/ stretchto_id_looper,
/*copy_data*/ NULL,
/*new_data*/ stretchto_new_data,
/*get_constraint_targets*/ stretchto_get_tars,
/*flush_constraint_targets*/ stretchto_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ stretchto_evaluate,
};
/* ---------- Floor ------------ */
@ -3755,18 +3755,18 @@ static void minmax_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *targ
}
static bConstraintTypeInfo CTI_MINMAX = {
CONSTRAINT_TYPE_MINMAX, /* type */
sizeof(bMinMaxConstraint), /* size */
N_("Floor"), /* name */
"bMinMaxConstraint", /* struct name */
NULL, /* free data */
minmax_id_looper, /* id looper */
NULL, /* copy data */
minmax_new_data, /* new data */
minmax_get_tars, /* get constraint targets */
minmax_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
minmax_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_MINMAX,
/*size*/ sizeof(bMinMaxConstraint),
/*name*/ N_("Floor"),
/*structName*/ "bMinMaxConstraint",
/*free_data*/ NULL,
/*id_looper*/ minmax_id_looper,
/*copy_data*/ NULL,
/*new_data*/ minmax_new_data,
/*get_constraint_targets*/ minmax_get_tars,
/*flush_constraint_targets*/ minmax_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ minmax_evaluate,
};
/* -------- Clamp To ---------- */
@ -3941,18 +3941,18 @@ static void clampto_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *tar
}
static bConstraintTypeInfo CTI_CLAMPTO = {
CONSTRAINT_TYPE_CLAMPTO, /* type */
sizeof(bClampToConstraint), /* size */
N_("Clamp To"), /* name */
"bClampToConstraint", /* struct name */
NULL, /* free data */
clampto_id_looper, /* id looper */
NULL, /* copy data */
NULL, /* new data */
clampto_get_tars, /* get constraint targets */
clampto_flush_tars, /* flush constraint targets */
clampto_get_tarmat, /* get target matrix */
clampto_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_CLAMPTO,
/*size*/ sizeof(bClampToConstraint),
/*name*/ N_("Clamp To"),
/*structName*/ "bClampToConstraint",
/*free_data*/ NULL,
/*id_looper*/ clampto_id_looper,
/*copy_data*/ NULL,
/*new_data*/ NULL,
/*get_constraint_targets*/ clampto_get_tars,
/*flush_constraint_targets*/ clampto_flush_tars,
/*get_target_matrix*/ clampto_get_tarmat,
/*evaluate_constraint*/ clampto_evaluate,
};
/* ---------- Transform Constraint ----------- */
@ -4150,18 +4150,18 @@ static void transform_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *t
}
static bConstraintTypeInfo CTI_TRANSFORM = {
CONSTRAINT_TYPE_TRANSFORM, /* type */
sizeof(bTransformConstraint), /* size */
N_("Transformation"), /* name */
"bTransformConstraint", /* struct name */
NULL, /* free data */
transform_id_looper, /* id looper */
NULL, /* copy data */
transform_new_data, /* new data */
transform_get_tars, /* get constraint targets */
transform_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get a target matrix */
transform_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_TRANSFORM,
/*size*/ sizeof(bTransformConstraint),
/*name*/ N_("Transformation"),
/*structName*/ "bTransformConstraint",
/*free_data*/ NULL,
/*id_looper*/ transform_id_looper,
/*copy_data*/ NULL,
/*new_data*/ transform_new_data,
/*get_constraint_targets*/ transform_get_tars,
/*flush_constraint_targets*/ transform_flush_tars,
/* get a target matrix */ default_get_tarmat,
/*evaluate_constraint*/ transform_evaluate,
};
/* ---------- Shrinkwrap Constraint ----------- */
@ -4381,18 +4381,18 @@ static void shrinkwrap_evaluate(bConstraint *UNUSED(con), bConstraintOb *cob, Li
}
static bConstraintTypeInfo CTI_SHRINKWRAP = {
CONSTRAINT_TYPE_SHRINKWRAP, /* type */
sizeof(bShrinkwrapConstraint), /* size */
N_("Shrinkwrap"), /* name */
"bShrinkwrapConstraint", /* struct name */
NULL, /* free data */
shrinkwrap_id_looper, /* id looper */
NULL, /* copy data */
shrinkwrap_new_data, /* new data */
shrinkwrap_get_tars, /* get constraint targets */
shrinkwrap_flush_tars, /* flush constraint targets */
shrinkwrap_get_tarmat, /* get a target matrix */
shrinkwrap_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_SHRINKWRAP,
/*size*/ sizeof(bShrinkwrapConstraint),
/*name*/ N_("Shrinkwrap"),
/*structName*/ "bShrinkwrapConstraint",
/*free_data*/ NULL,
/*id_looper*/ shrinkwrap_id_looper,
/*copy_data*/ NULL,
/*new_data*/ shrinkwrap_new_data,
/*get_constraint_targets*/ shrinkwrap_get_tars,
/*flush_constraint_targets*/ shrinkwrap_flush_tars,
/* get a target matrix */ shrinkwrap_get_tarmat,
/*evaluate_constraint*/ shrinkwrap_evaluate,
};
/* --------- Damped Track ---------- */
@ -4546,18 +4546,18 @@ static void damptrack_do_transform(float matrix[4][4], const float tarvec_in[3],
}
static bConstraintTypeInfo CTI_DAMPTRACK = {
CONSTRAINT_TYPE_DAMPTRACK, /* type */
sizeof(bDampTrackConstraint), /* size */
N_("Damped Track"), /* name */
"bDampTrackConstraint", /* struct name */
NULL, /* free data */
damptrack_id_looper, /* id looper */
NULL, /* copy data */
damptrack_new_data, /* new data */
damptrack_get_tars, /* get constraint targets */
damptrack_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
damptrack_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_DAMPTRACK,
/*size*/ sizeof(bDampTrackConstraint),
/*name*/ N_("Damped Track"),
/*structName*/ "bDampTrackConstraint",
/*free_data*/ NULL,
/*id_looper*/ damptrack_id_looper,
/*copy_data*/ NULL,
/*new_data*/ damptrack_new_data,
/*get_constraint_targets*/ damptrack_get_tars,
/*flush_constraint_targets*/ damptrack_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ damptrack_evaluate,
};
/* ----------- Spline IK ------------ */
@ -4641,18 +4641,18 @@ static void splineik_get_tarmat(struct Depsgraph *UNUSED(depsgraph),
}
static bConstraintTypeInfo CTI_SPLINEIK = {
CONSTRAINT_TYPE_SPLINEIK, /* type */
sizeof(bSplineIKConstraint), /* size */
N_("Spline IK"), /* name */
"bSplineIKConstraint", /* struct name */
splineik_free, /* free data */
splineik_id_looper, /* id looper */
splineik_copy, /* copy data */
splineik_new_data, /* new data */
splineik_get_tars, /* get constraint targets */
splineik_flush_tars, /* flush constraint targets */
splineik_get_tarmat, /* get target matrix */
NULL, /* evaluate - solved as separate loop */
/*type*/ CONSTRAINT_TYPE_SPLINEIK,
/*size*/ sizeof(bSplineIKConstraint),
/*name*/ N_("Spline IK"),
/*structName*/ "bSplineIKConstraint",
/*free_data*/ splineik_free,
/*id_looper*/ splineik_id_looper,
/*copy_data*/ splineik_copy,
/*new_data*/ splineik_new_data,
/*get_constraint_targets*/ splineik_get_tars,
/*flush_constraint_targets*/ splineik_flush_tars,
/*get_target_matrix*/ splineik_get_tarmat,
/* evaluate - solved as separate loop */ NULL,
};
/* ----------- Pivot ------------- */
@ -4765,19 +4765,19 @@ static void pivotcon_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *ta
}
static bConstraintTypeInfo CTI_PIVOT = {
CONSTRAINT_TYPE_PIVOT, /* type */
sizeof(bPivotConstraint), /* size */
N_("Pivot"), /* name */
"bPivotConstraint", /* struct name */
NULL, /* free data */
pivotcon_id_looper, /* id looper */
NULL, /* copy data */
NULL,
/* new data */ /* XXX: might be needed to get 'normal' pivot behavior... */
pivotcon_get_tars, /* get constraint targets */
pivotcon_flush_tars, /* flush constraint targets */
default_get_tarmat, /* get target matrix */
pivotcon_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_PIVOT,
/*size*/ sizeof(bPivotConstraint),
/*name*/ N_("Pivot"),
/*structName*/ "bPivotConstraint",
/*free_data*/ NULL,
/*id_looper*/ pivotcon_id_looper,
/*copy_data*/ NULL,
/*new_data*/ NULL,
/* XXX: might be needed to get 'normal' pivot behavior. */
/*get_constraint_targets*/ pivotcon_get_tars,
/*flush_constraint_targets*/ pivotcon_flush_tars,
/*get_target_matrix*/ default_get_tarmat,
/*evaluate_constraint*/ pivotcon_evaluate,
};
/* ----------- Follow Track ------------- */
@ -5185,18 +5185,18 @@ static void followtrack_evaluate(bConstraint *con, bConstraintOb *cob, ListBase
}
static bConstraintTypeInfo CTI_FOLLOWTRACK = {
CONSTRAINT_TYPE_FOLLOWTRACK, /* type */
sizeof(bFollowTrackConstraint), /* size */
N_("Follow Track"), /* name */
"bFollowTrackConstraint", /* struct name */
NULL, /* free data */
followtrack_id_looper, /* id looper */
NULL, /* copy data */
followtrack_new_data, /* new data */
NULL, /* get constraint targets */
NULL, /* flush constraint targets */
NULL, /* get target matrix */
followtrack_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_FOLLOWTRACK,
/*size*/ sizeof(bFollowTrackConstraint),
/*name*/ N_("Follow Track"),
/*structName*/ "bFollowTrackConstraint",
/*free_data*/ NULL,
/*id_looper*/ followtrack_id_looper,
/*copy_data*/ NULL,
/*new_data*/ followtrack_new_data,
/*get_constraint_targets*/ NULL,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ NULL,
/*evaluate_constraint*/ followtrack_evaluate,
};
/* ----------- Camera Solver ------------- */
@ -5243,18 +5243,18 @@ static void camerasolver_evaluate(bConstraint *con, bConstraintOb *cob, ListBase
}
static bConstraintTypeInfo CTI_CAMERASOLVER = {
CONSTRAINT_TYPE_CAMERASOLVER, /* type */
sizeof(bCameraSolverConstraint), /* size */
N_("Camera Solver"), /* name */
"bCameraSolverConstraint", /* struct name */
NULL, /* free data */
camerasolver_id_looper, /* id looper */
NULL, /* copy data */
camerasolver_new_data, /* new data */
NULL, /* get constraint targets */
NULL, /* flush constraint targets */
NULL, /* get target matrix */
camerasolver_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_CAMERASOLVER,
/*size*/ sizeof(bCameraSolverConstraint),
/*name*/ N_("Camera Solver"),
/*structName*/ "bCameraSolverConstraint",
/*free_data*/ NULL,
/*id_looper*/ camerasolver_id_looper,
/*copy_data*/ NULL,
/*new_data*/ camerasolver_new_data,
/*get_constraint_targets*/ NULL,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ NULL,
/*evaluate_constraint*/ camerasolver_evaluate,
};
/* ----------- Object Solver ------------- */
@ -5329,18 +5329,18 @@ static void objectsolver_evaluate(bConstraint *con, bConstraintOb *cob, ListBase
}
static bConstraintTypeInfo CTI_OBJECTSOLVER = {
CONSTRAINT_TYPE_OBJECTSOLVER, /* type */
sizeof(bObjectSolverConstraint), /* size */
N_("Object Solver"), /* name */
"bObjectSolverConstraint", /* struct name */
NULL, /* free data */
objectsolver_id_looper, /* id looper */
NULL, /* copy data */
objectsolver_new_data, /* new data */
NULL, /* get constraint targets */
NULL, /* flush constraint targets */
NULL, /* get target matrix */
objectsolver_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_OBJECTSOLVER,
/*size*/ sizeof(bObjectSolverConstraint),
/*name*/ N_("Object Solver"),
/*structName*/ "bObjectSolverConstraint",
/*free_data*/ NULL,
/*id_looper*/ objectsolver_id_looper,
/*copy_data*/ NULL,
/*new_data*/ objectsolver_new_data,
/*get_constraint_targets*/ NULL,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ NULL,
/*evaluate_constraint*/ objectsolver_evaluate,
};
/* ----------- Transform Cache ------------- */
@ -5426,18 +5426,18 @@ static void transformcache_new_data(void *cdata)
}
static bConstraintTypeInfo CTI_TRANSFORM_CACHE = {
CONSTRAINT_TYPE_TRANSFORM_CACHE, /* type */
sizeof(bTransformCacheConstraint), /* size */
N_("Transform Cache"), /* name */
"bTransformCacheConstraint", /* struct name */
transformcache_free, /* free data */
transformcache_id_looper, /* id looper */
transformcache_copy, /* copy data */
transformcache_new_data, /* new data */
NULL, /* get constraint targets */
NULL, /* flush constraint targets */
NULL, /* get target matrix */
transformcache_evaluate, /* evaluate */
/*type*/ CONSTRAINT_TYPE_TRANSFORM_CACHE,
/*size*/ sizeof(bTransformCacheConstraint),
/*name*/ N_("Transform Cache"),
/*structName*/ "bTransformCacheConstraint",
/*free_data*/ transformcache_free,
/*id_looper*/ transformcache_id_looper,
/*copy_data*/ transformcache_copy,
/*new_data*/ transformcache_new_data,
/*get_constraint_targets*/ NULL,
/*flush_constraint_targets*/ NULL,
/*get_target_matrix*/ NULL,
/*evaluate_constraint*/ transformcache_evaluate,
};
/* ************************* Constraints Type-Info *************************** */

View File

@ -304,33 +304,33 @@ static void curve_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_CU_LEGACY = {
/* id_code */ ID_CU_LEGACY,
/* id_filter */ FILTER_ID_CU_LEGACY,
/* main_listbase_index */ INDEX_ID_CU_LEGACY,
/* struct_size */ sizeof(Curve),
/* name */ "Curve",
/* name_plural */ "curves",
/* translation_context */ BLT_I18NCONTEXT_ID_CURVE_LEGACY,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_CU_LEGACY,
/*id_filter*/ FILTER_ID_CU_LEGACY,
/*main_listbase_index*/ INDEX_ID_CU_LEGACY,
/*struct_size*/ sizeof(Curve),
/*name*/ "Curve",
/*name_plural*/ "curves",
/*translation_context*/ BLT_I18NCONTEXT_ID_CURVE_LEGACY,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ curve_init_data,
/* copy_data */ curve_copy_data,
/* free_data */ curve_free_data,
/* make_local */ nullptr,
/* foreach_id */ curve_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ curve_init_data,
/*copy_data*/ curve_copy_data,
/*free_data*/ curve_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ curve_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ curve_blend_write,
/* blend_read_data */ curve_blend_read_data,
/* blend_read_lib */ curve_blend_read_lib,
/* blend_read_expand */ curve_blend_read_expand,
/*blend_write*/ curve_blend_write,
/*blend_read_data*/ curve_blend_read_data,
/*blend_read_lib*/ curve_blend_read_lib,
/*blend_read_expand*/ curve_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
void BKE_curve_editfont_free(Curve *cu)

View File

@ -199,33 +199,33 @@ static void curves_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_CV = {
/* id_code */ ID_CV,
/* id_filter */ FILTER_ID_CV,
/* main_listbase_index */ INDEX_ID_CV,
/* struct_size */ sizeof(Curves),
/* name */ "Curves",
/* name_plural */ "hair_curves",
/* translation_context */ BLT_I18NCONTEXT_ID_CURVES,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_CV,
/*id_filter*/ FILTER_ID_CV,
/*main_listbase_index*/ INDEX_ID_CV,
/*struct_size*/ sizeof(Curves),
/*name*/ "Curves",
/*name_plural*/ "hair_curves",
/*translation_context*/ BLT_I18NCONTEXT_ID_CURVES,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ curves_init_data,
/* copy_data */ curves_copy_data,
/* free_data */ curves_free_data,
/* make_local */ nullptr,
/* foreach_id */ curves_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ curves_init_data,
/*copy_data*/ curves_copy_data,
/*free_data*/ curves_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ curves_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ curves_blend_write,
/* blend_read_data */ curves_blend_read_data,
/* blend_read_lib */ curves_blend_read_lib,
/* blend_read_expand */ curves_blend_read_expand,
/*blend_write*/ curves_blend_write,
/*blend_read_data*/ curves_blend_read_data,
/*blend_read_lib*/ curves_blend_read_lib,
/*blend_read_expand*/ curves_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
void *BKE_curves_add(Main *bmain, const char *name)

View File

@ -2028,71 +2028,70 @@ static const char *LAYERTYPENAMES[CD_NUMTYPES] = {
};
const CustomData_MeshMasks CD_MASK_BAREMESH = {
/* vmask */ CD_MASK_PROP_FLOAT3,
/* emask */ CD_MASK_MEDGE,
/* fmask */ 0,
/* pmask */ CD_MASK_MPOLY | CD_MASK_FACEMAP,
/* lmask */ CD_MASK_MLOOP,
/*vmask*/ CD_MASK_PROP_FLOAT3,
/*emask*/ CD_MASK_MEDGE,
/*fmask*/ 0,
/*pmask*/ CD_MASK_MPOLY | CD_MASK_FACEMAP,
/*lmask*/ CD_MASK_MLOOP,
};
const CustomData_MeshMasks CD_MASK_BAREMESH_ORIGINDEX = {
/* vmask */ CD_MASK_PROP_FLOAT3 | CD_MASK_ORIGINDEX,
/* emask */ CD_MASK_MEDGE | CD_MASK_ORIGINDEX,
/* fmask */ 0,
/* pmask */ CD_MASK_MPOLY | CD_MASK_FACEMAP | CD_MASK_ORIGINDEX,
/* lmask */ CD_MASK_MLOOP,
/*vmask*/ CD_MASK_PROP_FLOAT3 | CD_MASK_ORIGINDEX,
/*emask*/ CD_MASK_MEDGE | CD_MASK_ORIGINDEX,
/*fmask*/ 0,
/*pmask*/ CD_MASK_MPOLY | CD_MASK_FACEMAP | CD_MASK_ORIGINDEX,
/*lmask*/ CD_MASK_MLOOP,
};
const CustomData_MeshMasks CD_MASK_MESH = {
/* vmask */ (CD_MASK_PROP_FLOAT3 | CD_MASK_MDEFORMVERT | CD_MASK_MVERT_SKIN |
CD_MASK_PAINT_MASK | CD_MASK_PROP_ALL | CD_MASK_CREASE | CD_MASK_BWEIGHT),
/* emask */
/*vmask*/ (CD_MASK_PROP_FLOAT3 | CD_MASK_MDEFORMVERT | CD_MASK_MVERT_SKIN |
CD_MASK_PAINT_MASK | CD_MASK_PROP_ALL | CD_MASK_CREASE | CD_MASK_BWEIGHT),
/*emask*/
(CD_MASK_MEDGE | CD_MASK_FREESTYLE_EDGE | CD_MASK_PROP_ALL | CD_MASK_BWEIGHT | CD_MASK_CREASE),
/* fmask */ 0,
/* pmask */
/*fmask*/ 0,
/*pmask*/
(CD_MASK_MPOLY | CD_MASK_FACEMAP | CD_MASK_FREESTYLE_FACE | CD_MASK_PROP_ALL),
/* lmask */
/*lmask*/
(CD_MASK_MLOOP | CD_MASK_MDISPS | CD_MASK_CUSTOMLOOPNORMAL | CD_MASK_GRID_PAINT_MASK |
CD_MASK_PROP_ALL),
};
const CustomData_MeshMasks CD_MASK_DERIVEDMESH = {
/* vmask */ (CD_MASK_ORIGINDEX | CD_MASK_MDEFORMVERT | CD_MASK_SHAPEKEY | CD_MASK_MVERT_SKIN |
CD_MASK_PAINT_MASK | CD_MASK_ORCO | CD_MASK_CLOTH_ORCO | CD_MASK_PROP_ALL |
CD_MASK_CREASE | CD_MASK_BWEIGHT),
/* emask */
/*vmask*/ (CD_MASK_ORIGINDEX | CD_MASK_MDEFORMVERT | CD_MASK_SHAPEKEY | CD_MASK_MVERT_SKIN |
CD_MASK_PAINT_MASK | CD_MASK_ORCO | CD_MASK_CLOTH_ORCO | CD_MASK_PROP_ALL |
CD_MASK_CREASE | CD_MASK_BWEIGHT),
/*emask*/
(CD_MASK_ORIGINDEX | CD_MASK_FREESTYLE_EDGE | CD_MASK_BWEIGHT | CD_MASK_PROP_ALL |
CD_MASK_CREASE),
/* fmask */ (CD_MASK_ORIGINDEX | CD_MASK_ORIGSPACE | CD_MASK_PREVIEW_MCOL | CD_MASK_TANGENT),
/* pmask */
/*fmask*/ (CD_MASK_ORIGINDEX | CD_MASK_ORIGSPACE | CD_MASK_PREVIEW_MCOL | CD_MASK_TANGENT),
/*pmask*/
(CD_MASK_ORIGINDEX | CD_MASK_FREESTYLE_FACE | CD_MASK_FACEMAP | CD_MASK_PROP_ALL),
/* lmask */
/*lmask*/
(CD_MASK_CUSTOMLOOPNORMAL | CD_MASK_PREVIEW_MLOOPCOL | CD_MASK_ORIGSPACE_MLOOP |
CD_MASK_PROP_ALL), /* XXX MISSING CD_MASK_MLOOPTANGENT ? */
CD_MASK_PROP_ALL), /* XXX: MISSING #CD_MASK_MLOOPTANGENT ? */
};
const CustomData_MeshMasks CD_MASK_BMESH = {
/* vmask */ (CD_MASK_MDEFORMVERT | CD_MASK_BWEIGHT | CD_MASK_MVERT_SKIN | CD_MASK_SHAPEKEY |
CD_MASK_SHAPE_KEYINDEX | CD_MASK_PAINT_MASK | CD_MASK_PROP_ALL | CD_MASK_CREASE),
/* emask */ (CD_MASK_BWEIGHT | CD_MASK_CREASE | CD_MASK_FREESTYLE_EDGE | CD_MASK_PROP_ALL),
/* fmask */ 0,
/* pmask */
/*vmask*/ (CD_MASK_MDEFORMVERT | CD_MASK_BWEIGHT | CD_MASK_MVERT_SKIN | CD_MASK_SHAPEKEY |
CD_MASK_SHAPE_KEYINDEX | CD_MASK_PAINT_MASK | CD_MASK_PROP_ALL | CD_MASK_CREASE),
/*emask*/ (CD_MASK_BWEIGHT | CD_MASK_CREASE | CD_MASK_FREESTYLE_EDGE | CD_MASK_PROP_ALL),
/*fmask*/ 0,
/*pmask*/
(CD_MASK_FREESTYLE_FACE | CD_MASK_FACEMAP | CD_MASK_PROP_ALL),
/* lmask */
/*lmask*/
(CD_MASK_MDISPS | CD_MASK_CUSTOMLOOPNORMAL | CD_MASK_GRID_PAINT_MASK | CD_MASK_PROP_ALL),
};
const CustomData_MeshMasks CD_MASK_EVERYTHING = {
/* vmask */ (CD_MASK_BM_ELEM_PYPTR | CD_MASK_ORIGINDEX | CD_MASK_MDEFORMVERT |
CD_MASK_BWEIGHT | CD_MASK_MVERT_SKIN | CD_MASK_ORCO | CD_MASK_CLOTH_ORCO |
CD_MASK_SHAPEKEY | CD_MASK_SHAPE_KEYINDEX | CD_MASK_PAINT_MASK |
CD_MASK_PROP_ALL | CD_MASK_CREASE),
/* emask */
/*vmask*/ (CD_MASK_BM_ELEM_PYPTR | CD_MASK_ORIGINDEX | CD_MASK_MDEFORMVERT | CD_MASK_BWEIGHT |
CD_MASK_MVERT_SKIN | CD_MASK_ORCO | CD_MASK_CLOTH_ORCO | CD_MASK_SHAPEKEY |
CD_MASK_SHAPE_KEYINDEX | CD_MASK_PAINT_MASK | CD_MASK_PROP_ALL | CD_MASK_CREASE),
/*emask*/
(CD_MASK_MEDGE | CD_MASK_BM_ELEM_PYPTR | CD_MASK_ORIGINDEX | CD_MASK_BWEIGHT | CD_MASK_CREASE |
CD_MASK_FREESTYLE_EDGE | CD_MASK_PROP_ALL),
/* fmask */
/*fmask*/
(CD_MASK_MFACE | CD_MASK_ORIGINDEX | CD_MASK_NORMAL | CD_MASK_MTFACE | CD_MASK_MCOL |
CD_MASK_ORIGSPACE | CD_MASK_TANGENT | CD_MASK_TESSLOOPNORMAL | CD_MASK_PREVIEW_MCOL |
CD_MASK_PROP_ALL),
/* pmask */
/*pmask*/
(CD_MASK_MPOLY | CD_MASK_BM_ELEM_PYPTR | CD_MASK_ORIGINDEX | CD_MASK_FACEMAP |
CD_MASK_FREESTYLE_FACE | CD_MASK_PROP_ALL),
/* lmask */
/*lmask*/
(CD_MASK_MLOOP | CD_MASK_BM_ELEM_PYPTR | CD_MASK_MDISPS | CD_MASK_NORMAL |
CD_MASK_CUSTOMLOOPNORMAL | CD_MASK_MLOOPTANGENT | CD_MASK_PREVIEW_MLOOPCOL |
CD_MASK_ORIGSPACE_MLOOP | CD_MASK_GRID_PAINT_MASK | CD_MASK_PROP_ALL),

View File

@ -61,20 +61,19 @@ static CLG_LogRef LOG = {"bke.fmodifier"};
*/
#if 0
static FModifierTypeInfo FMI_MODNAME = {
FMODIFIER_TYPE_MODNAME, /* type */
sizeof(FMod_ModName), /* size */
FMI_TYPE_SOME_ACTION, /* action type */
FMI_REQUIRES_SOME_REQUIREMENT, /* requirements */
"Modifier Name", /* name */
"FMod_ModName", /* struct name */
0, /* storage size */
fcm_modname_free, /* free data */
fcm_modname_relink, /* relink data */
fcm_modname_copy, /* copy data */
fcm_modname_new_data, /* new data */
fcm_modname_verify, /* verify */
fcm_modname_time, /* evaluate time */
fcm_modname_evaluate, /* evaluate */
/*type*/ FMODIFIER_TYPE_MODNAME,
/*size*/ sizeof(FMod_ModName),
/*acttype*/ FMI_TYPE_SOME_ACTION,
/*requires*/ FMI_REQUIRES_SOME_REQUIREMENT,
/*name*/ "Modifier Name",
/*structName*/ "FMod_ModName",
/*storage_size*/ 0,
/*free_data*/ fcm_modname_free,
/*copy_data*/ fcm_modname_copy,
/*new_data*/ fcm_modname_new_data,
/*verify_data*/ fcm_modname_verify,
/*evaluate_modifier_time*/ fcm_modname_time,
/*evaluate_modifier*/ fcm_modname_evaluate,
};
#endif
@ -226,19 +225,19 @@ static void fcm_generator_evaluate(
}
static FModifierTypeInfo FMI_GENERATOR = {
FMODIFIER_TYPE_GENERATOR, /* type */
sizeof(FMod_Generator), /* size */
FMI_TYPE_GENERATE_CURVE, /* action type */
FMI_REQUIRES_NOTHING, /* requirements */
N_("Generator"), /* name */
"FMod_Generator", /* struct name */
0, /* storage size */
fcm_generator_free, /* free data */
fcm_generator_copy, /* copy data */
fcm_generator_new_data, /* new data */
fcm_generator_verify, /* verify */
NULL, /* evaluate time */
fcm_generator_evaluate, /* evaluate */
/*type*/ FMODIFIER_TYPE_GENERATOR,
/*size*/ sizeof(FMod_Generator),
/*acttype*/ FMI_TYPE_GENERATE_CURVE,
/*requires*/ FMI_REQUIRES_NOTHING,
/*name*/ N_("Generator"),
/*structName*/ "FMod_Generator",
/*storage_size*/ 0,
/*free_data*/ fcm_generator_free,
/*copy_data*/ fcm_generator_copy,
/*new_data*/ fcm_generator_new_data,
/*verify_data*/ fcm_generator_verify,
/*evaluate_modifier_time*/ NULL,
/*evaluate_modifier*/ fcm_generator_evaluate,
};
/* Built-In Function Generator F-Curve Modifier --------------------------- */
@ -356,19 +355,19 @@ static void fcm_fn_generator_evaluate(
}
static FModifierTypeInfo FMI_FN_GENERATOR = {
FMODIFIER_TYPE_FN_GENERATOR, /* type */
sizeof(FMod_FunctionGenerator), /* size */
FMI_TYPE_GENERATE_CURVE, /* action type */
FMI_REQUIRES_NOTHING, /* requirements */
N_("Built-In Function"), /* name */
"FMod_FunctionGenerator", /* struct name */
0, /* storage size */
NULL, /* free data */
NULL, /* copy data */
fcm_fn_generator_new_data, /* new data */
NULL, /* verify */
NULL, /* evaluate time */
fcm_fn_generator_evaluate, /* evaluate */
/*type*/ FMODIFIER_TYPE_FN_GENERATOR,
/*size*/ sizeof(FMod_FunctionGenerator),
/*acttype*/ FMI_TYPE_GENERATE_CURVE,
/*requires*/ FMI_REQUIRES_NOTHING,
/*name*/ N_("Built-In Function"),
/*structName*/ "FMod_FunctionGenerator",
/*storage_size*/ 0,
/*free_data*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ fcm_fn_generator_new_data,
/*verify_data*/ NULL,
/*evaluate_modifier_time*/ NULL,
/*evaluate_modifier*/ fcm_fn_generator_evaluate,
};
/* Envelope F-Curve Modifier --------------------------- */
@ -469,19 +468,19 @@ static void fcm_envelope_evaluate(
}
static FModifierTypeInfo FMI_ENVELOPE = {
FMODIFIER_TYPE_ENVELOPE, /* type */
sizeof(FMod_Envelope), /* size */
FMI_TYPE_REPLACE_VALUES, /* action type */
0, /* requirements */
N_("Envelope"), /* name */
"FMod_Envelope", /* struct name */
0, /* storage size */
fcm_envelope_free, /* free data */
fcm_envelope_copy, /* copy data */
fcm_envelope_new_data, /* new data */
fcm_envelope_verify, /* verify */
NULL, /* evaluate time */
fcm_envelope_evaluate, /* evaluate */
/*type*/ FMODIFIER_TYPE_ENVELOPE,
/*size*/ sizeof(FMod_Envelope),
/*acttype*/ FMI_TYPE_REPLACE_VALUES,
/*requires*/ 0,
/*name*/ N_("Envelope"),
/*structName*/ "FMod_Envelope",
/*storage_size*/ 0,
/*free_data*/ fcm_envelope_free,
/*copy_data*/ fcm_envelope_copy,
/*new_data*/ fcm_envelope_new_data,
/*verify_data*/ fcm_envelope_verify,
/*evaluate_modifier_time*/ NULL,
/*evaluate_modifier*/ fcm_envelope_evaluate,
};
/* exported function for finding points */
@ -768,19 +767,19 @@ static void fcm_cycles_evaluate(FCurve *UNUSED(fcu),
}
static FModifierTypeInfo FMI_CYCLES = {
FMODIFIER_TYPE_CYCLES, /* type */
sizeof(FMod_Cycles), /* size */
FMI_TYPE_EXTRAPOLATION, /* action type */
FMI_REQUIRES_ORIGINAL_DATA, /* requirements */
CTX_N_(BLT_I18NCONTEXT_ID_ACTION, "Cycles"), /* name */
"FMod_Cycles", /* struct name */
sizeof(tFCMED_Cycles), /* storage size */
NULL, /* free data */
NULL, /* copy data */
fcm_cycles_new_data, /* new data */
NULL /*fcm_cycles_verify*/, /* verify */
fcm_cycles_time, /* evaluate time */
fcm_cycles_evaluate, /* evaluate */
/*type*/ FMODIFIER_TYPE_CYCLES,
/*size*/ sizeof(FMod_Cycles),
/*acttype*/ FMI_TYPE_EXTRAPOLATION,
/*requires*/ FMI_REQUIRES_ORIGINAL_DATA,
/*name*/ CTX_N_(BLT_I18NCONTEXT_ID_ACTION, "Cycles"),
/*structName*/ "FMod_Cycles",
/*storage_size*/ sizeof(tFCMED_Cycles),
/*free_data*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ fcm_cycles_new_data,
/*verify_data*/ NULL /*fcm_cycles_verify*/,
/*evaluate_modifier_time*/ fcm_cycles_time,
/*evaluate_modifier*/ fcm_cycles_evaluate,
};
/* Noise F-Curve Modifier --------------------------- */
@ -830,19 +829,19 @@ static void fcm_noise_evaluate(
}
static FModifierTypeInfo FMI_NOISE = {
FMODIFIER_TYPE_NOISE, /* type */
sizeof(FMod_Noise), /* size */
FMI_TYPE_REPLACE_VALUES, /* action type */
0, /* requirements */
N_("Noise"), /* name */
"FMod_Noise", /* struct name */
0, /* storage size */
NULL, /* free data */
NULL, /* copy data */
fcm_noise_new_data, /* new data */
NULL /*fcm_noise_verify*/, /* verify */
NULL, /* evaluate time */
fcm_noise_evaluate, /* evaluate */
/*type*/ FMODIFIER_TYPE_NOISE,
/*size*/ sizeof(FMod_Noise),
/*acttype*/ FMI_TYPE_REPLACE_VALUES,
/*requires*/ 0,
/*name*/ N_("Noise"),
/*structName*/ "FMod_Noise",
/*storage_size*/ 0,
/*free_data*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ fcm_noise_new_data,
/*verify_data*/ NULL /*fcm_noise_verify*/,
/*evaluate_modifier_time*/ NULL,
/*evaluate_modifier*/ fcm_noise_evaluate,
};
/* Python F-Curve Modifier --------------------------- */
@ -888,19 +887,19 @@ static void fcm_python_evaluate(FCurve *UNUSED(fcu),
}
static FModifierTypeInfo FMI_PYTHON = {
FMODIFIER_TYPE_PYTHON, /* type */
sizeof(FMod_Python), /* size */
FMI_TYPE_GENERATE_CURVE, /* action type */
FMI_REQUIRES_RUNTIME_CHECK, /* requirements */
N_("Python"), /* name */
"FMod_Python", /* struct name */
0, /* storage size */
fcm_python_free, /* free data */
fcm_python_copy, /* copy data */
fcm_python_new_data, /* new data */
NULL /*fcm_python_verify*/, /* verify */
NULL /*fcm_python_time*/, /* evaluate time */
fcm_python_evaluate, /* evaluate */
/*type*/ FMODIFIER_TYPE_PYTHON,
/*size*/ sizeof(FMod_Python),
/*acttype*/ FMI_TYPE_GENERATE_CURVE,
/*requires*/ FMI_REQUIRES_RUNTIME_CHECK,
/*name*/ N_("Python"),
/*structName*/ "FMod_Python",
/*storage_size*/ 0,
/*free_data*/ fcm_python_free,
/*copy_data*/ fcm_python_copy,
/*new_data*/ fcm_python_new_data,
/*verify_data*/ NULL /*fcm_python_verify*/,
/*evaluate_modifier_time*/ NULL /*fcm_python_time*/,
/*evaluate_modifier*/ fcm_python_evaluate,
};
/* Limits F-Curve Modifier --------------------------- */
@ -943,20 +942,19 @@ static void fcm_limits_evaluate(FCurve *UNUSED(fcu),
}
static FModifierTypeInfo FMI_LIMITS = {
FMODIFIER_TYPE_LIMITS, /* type */
sizeof(FMod_Limits), /* size */
FMI_TYPE_GENERATE_CURVE,
/* action type */ /* XXX... err... */
FMI_REQUIRES_RUNTIME_CHECK, /* requirements */
N_("Limits"), /* name */
"FMod_Limits", /* struct name */
0, /* storage size */
NULL, /* free data */
NULL, /* copy data */
NULL, /* new data */
NULL, /* verify */
fcm_limits_time, /* evaluate time */
fcm_limits_evaluate, /* evaluate */
/*type*/ FMODIFIER_TYPE_LIMITS,
/*size*/ sizeof(FMod_Limits),
/*acttype*/ FMI_TYPE_GENERATE_CURVE,
/*requires*/ FMI_REQUIRES_RUNTIME_CHECK, /* XXX... err... */
/*name*/ N_("Limits"),
/*structName*/ "FMod_Limits",
/*storage_size*/ 0,
/*free_data*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ NULL,
/*verify_data*/ NULL,
/*evaluate_modifier_time*/ fcm_limits_time,
/*evaluate_modifier*/ fcm_limits_evaluate,
};
/* Stepped F-Curve Modifier --------------------------- */
@ -1004,20 +1002,19 @@ static float fcm_stepped_time(FCurve *UNUSED(fcu),
}
static FModifierTypeInfo FMI_STEPPED = {
FMODIFIER_TYPE_STEPPED, /* type */
sizeof(FMod_Limits), /* size */
FMI_TYPE_GENERATE_CURVE,
/* action type */ /* XXX... err... */
FMI_REQUIRES_RUNTIME_CHECK, /* requirements */
N_("Stepped"), /* name */
"FMod_Stepped", /* struct name */
0, /* storage size */
NULL, /* free data */
NULL, /* copy data */
fcm_stepped_new_data, /* new data */
NULL, /* verify */
fcm_stepped_time, /* evaluate time */
NULL, /* evaluate */
/*type*/ FMODIFIER_TYPE_STEPPED,
/*size*/ sizeof(FMod_Limits),
/*acttype*/ FMI_TYPE_GENERATE_CURVE,
/*requires*/ FMI_REQUIRES_RUNTIME_CHECK, /* XXX... err... */
/*name*/ N_("Stepped"),
/*structName*/ "FMod_Stepped",
/*storage_size*/ 0,
/*free_data*/ NULL,
/*copy_data*/ NULL,
/*new_data*/ fcm_stepped_new_data,
/*verify_data*/ NULL,
/*evaluate_modifier_time*/ fcm_stepped_time,
/*evaluate_modifier*/ NULL,
};
/** \} */

View File

@ -195,35 +195,35 @@ static void shapekey_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_KE = {
/* id_code */ ID_KE,
/* id_filter */ FILTER_ID_KE,
/* main_listbase_index */ INDEX_ID_KE,
/* struct_size */ sizeof(Key),
/* name */ "Key",
/* name_plural */ "shape_keys",
/* translation_context */ BLT_I18NCONTEXT_ID_SHAPEKEY,
/* flags */ IDTYPE_FLAGS_NO_LIBLINKING,
/* asset_type_info */ nullptr,
/*id_code*/ ID_KE,
/*id_filter*/ FILTER_ID_KE,
/*main_listbase_index*/ INDEX_ID_KE,
/*struct_size*/ sizeof(Key),
/*name*/ "Key",
/*name_plural*/ "shape_keys",
/*translation_context*/ BLT_I18NCONTEXT_ID_SHAPEKEY,
/*flags*/ IDTYPE_FLAGS_NO_LIBLINKING,
/*asset_type_info*/ nullptr,
/* init_data */ nullptr,
/* copy_data */ shapekey_copy_data,
/* free_data */ shapekey_free_data,
/* make_local */ nullptr,
/* foreach_id */ shapekey_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/*init_data*/ nullptr,
/*copy_data*/ shapekey_copy_data,
/*free_data*/ shapekey_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ shapekey_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/* A bit weird, due to shape-keys not being strictly speaking embedded data... But they also
* share a lot with those (non linkable, only ever used by one owner ID, etc.). */
/* owner_pointer_get */ shapekey_owner_pointer_get,
/*owner_pointer_get*/ shapekey_owner_pointer_get,
/* blend_write */ shapekey_blend_write,
/* blend_read_data */ shapekey_blend_read_data,
/* blend_read_lib */ shapekey_blend_read_lib,
/* blend_read_expand */ shapekey_blend_read_expand,
/*blend_write*/ shapekey_blend_write,
/*blend_read_data*/ shapekey_blend_read_data,
/*blend_read_lib*/ shapekey_blend_read_lib,
/*blend_read_expand*/ shapekey_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
#define KEY_MODE_DUMMY 0 /* use where mode isn't checked for */

View File

@ -732,33 +732,33 @@ static void linestyle_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_LS = {
/* id_code */ ID_LS,
/* id_filter */ FILTER_ID_LS,
/* main_listbase_index */ INDEX_ID_LS,
/* struct_size */ sizeof(FreestyleLineStyle),
/* name */ "FreestyleLineStyle",
/* name_plural */ "linestyles",
/* translation_context */ BLT_I18NCONTEXT_ID_FREESTYLELINESTYLE,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_LS,
/*id_filter*/ FILTER_ID_LS,
/*main_listbase_index*/ INDEX_ID_LS,
/*struct_size*/ sizeof(FreestyleLineStyle),
/*name*/ "FreestyleLineStyle",
/*name_plural*/ "linestyles",
/*translation_context*/ BLT_I18NCONTEXT_ID_FREESTYLELINESTYLE,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ linestyle_init_data,
/* copy_data */ linestyle_copy_data,
/* free_data */ linestyle_free_data,
/* make_local */ nullptr,
/* foreach_id */ linestyle_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ linestyle_init_data,
/*copy_data*/ linestyle_copy_data,
/*free_data*/ linestyle_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ linestyle_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ linestyle_blend_write,
/* blend_read_data */ linestyle_blend_read_data,
/* blend_read_lib */ linestyle_blend_read_lib,
/* blend_read_expand */ linestyle_blend_read_expand,
/*blend_write*/ linestyle_blend_write,
/*blend_read_data*/ linestyle_blend_read_data,
/*blend_read_lib*/ linestyle_blend_read_lib,
/*blend_read_expand*/ linestyle_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
static const char *modifier_name[LS_MODIFIER_NUM] = {

View File

@ -243,33 +243,33 @@ static void material_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_MA = {
/* id_code */ ID_MA,
/* id_filter */ FILTER_ID_MA,
/* main_listbase_index */ INDEX_ID_MA,
/* struct_size */ sizeof(Material),
/* name */ "Material",
/* name_plural */ "materials",
/* translation_context */ BLT_I18NCONTEXT_ID_MATERIAL,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_MA,
/*id_filter*/ FILTER_ID_MA,
/*main_listbase_index*/ INDEX_ID_MA,
/*struct_size*/ sizeof(Material),
/*name*/ "Material",
/*name_plural*/ "materials",
/*translation_context*/ BLT_I18NCONTEXT_ID_MATERIAL,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ material_init_data,
/* copy_data */ material_copy_data,
/* free_data */ material_free_data,
/* make_local */ nullptr,
/* foreach_id */ material_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ material_init_data,
/*copy_data*/ material_copy_data,
/*free_data*/ material_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ material_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ material_blend_write,
/* blend_read_data */ material_blend_read_data,
/* blend_read_lib */ material_blend_read_lib,
/* blend_read_expand */ material_blend_read_expand,
/*blend_write*/ material_blend_write,
/*blend_read_data*/ material_blend_read_data,
/*blend_read_lib*/ material_blend_read_lib,
/*blend_read_expand*/ material_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
void BKE_gpencil_material_attr_init(Material *ma)

View File

@ -161,33 +161,33 @@ static void metaball_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_MB = {
/* id_code */ ID_MB,
/* id_filter */ FILTER_ID_MB,
/* main_listbase_index */ INDEX_ID_MB,
/* struct_size */ sizeof(MetaBall),
/* name */ "Metaball",
/* name_plural */ "metaballs",
/* translation_context */ BLT_I18NCONTEXT_ID_METABALL,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_MB,
/*id_filter*/ FILTER_ID_MB,
/*main_listbase_index*/ INDEX_ID_MB,
/*struct_size*/ sizeof(MetaBall),
/*name*/ "Metaball",
/*name_plural*/ "metaballs",
/*translation_context*/ BLT_I18NCONTEXT_ID_METABALL,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ metaball_init_data,
/* copy_data */ metaball_copy_data,
/* free_data */ metaball_free_data,
/* make_local */ nullptr,
/* foreach_id */ metaball_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ metaball_init_data,
/*copy_data*/ metaball_copy_data,
/*free_data*/ metaball_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ metaball_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ metaball_blend_write,
/* blend_read_data */ metaball_blend_read_data,
/* blend_read_lib */ metaball_blend_read_lib,
/* blend_read_expand */ metaball_blend_read_expand,
/*blend_write*/ metaball_blend_write,
/*blend_read_data*/ metaball_blend_read_data,
/*blend_read_lib*/ metaball_blend_read_lib,
/*blend_read_expand*/ metaball_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
/* Functions */

View File

@ -408,33 +408,33 @@ static void mesh_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_ME = {
/* id_code */ ID_ME,
/* id_filter */ FILTER_ID_ME,
/* main_listbase_index */ INDEX_ID_ME,
/* struct_size */ sizeof(Mesh),
/* name */ "Mesh",
/* name_plural */ "meshes",
/* translation_context */ BLT_I18NCONTEXT_ID_MESH,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_ME,
/*id_filter*/ FILTER_ID_ME,
/*main_listbase_index*/ INDEX_ID_ME,
/*struct_size*/ sizeof(Mesh),
/*name*/ "Mesh",
/*name_plural*/ "meshes",
/*translation_context*/ BLT_I18NCONTEXT_ID_MESH,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ mesh_init_data,
/* copy_data */ mesh_copy_data,
/* free_data */ mesh_free_data,
/* make_local */ nullptr,
/* foreach_id */ mesh_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ mesh_foreach_path,
/* owner_pointer_get */ nullptr,
/*init_data*/ mesh_init_data,
/*copy_data*/ mesh_copy_data,
/*free_data*/ mesh_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ mesh_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ mesh_foreach_path,
/*owner_pointer_get*/ nullptr,
/* blend_write */ mesh_blend_write,
/* blend_read_data */ mesh_blend_read_data,
/* blend_read_lib */ mesh_blend_read_lib,
/* blend_read_expand */ mesh_read_expand,
/*blend_write*/ mesh_blend_write,
/*blend_read_data*/ mesh_blend_read_data,
/*blend_read_lib*/ mesh_blend_read_lib,
/*blend_read_expand*/ mesh_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
enum {

View File

@ -1040,37 +1040,37 @@ static void node_tree_asset_pre_save(void *asset_ptr, AssetMetaData *asset_data)
} // namespace blender::bke
static AssetTypeInfo AssetType_NT = {
/* pre_save_fn */ blender::bke::node_tree_asset_pre_save,
/*pre_save_fn*/ blender::bke::node_tree_asset_pre_save,
};
IDTypeInfo IDType_ID_NT = {
/* id_code */ ID_NT,
/* id_filter */ FILTER_ID_NT,
/* main_listbase_index */ INDEX_ID_NT,
/* struct_size */ sizeof(bNodeTree),
/* name */ "NodeTree",
/* name_plural */ "node_groups",
/* translation_context */ BLT_I18NCONTEXT_ID_NODETREE,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ &AssetType_NT,
/*id_code*/ ID_NT,
/*id_filter*/ FILTER_ID_NT,
/*main_listbase_index*/ INDEX_ID_NT,
/*struct_size*/ sizeof(bNodeTree),
/*name*/ "NodeTree",
/*name_plural*/ "node_groups",
/*translation_context*/ BLT_I18NCONTEXT_ID_NODETREE,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ &AssetType_NT,
/* init_data */ ntree_init_data,
/* copy_data */ ntree_copy_data,
/* free_data */ ntree_free_data,
/* make_local */ nullptr,
/* foreach_id */ node_foreach_id,
/* foreach_cache */ node_foreach_cache,
/* foreach_path */ node_foreach_path,
/* owner_pointer_get */ node_owner_pointer_get,
/*init_data*/ ntree_init_data,
/*copy_data*/ ntree_copy_data,
/*free_data*/ ntree_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ node_foreach_id,
/*foreach_cache*/ node_foreach_cache,
/*foreach_path*/ node_foreach_path,
/*owner_pointer_get*/ node_owner_pointer_get,
/* blend_write */ ntree_blend_write,
/* blend_read_data */ ntree_blend_read_data,
/* blend_read_lib */ ntree_blend_read_lib,
/* blend_read_expand */ ntree_blend_read_expand,
/*blend_write*/ ntree_blend_write,
/*blend_read_data*/ ntree_blend_read_data,
/*blend_read_lib*/ ntree_blend_read_lib,
/*blend_read_expand*/ ntree_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
static void node_add_sockets_from_type(bNodeTree *ntree, bNode *node, bNodeType *ntype)

View File

@ -1221,37 +1221,37 @@ static void object_asset_pre_save(void *asset_ptr, struct AssetMetaData *asset_d
}
static AssetTypeInfo AssetType_OB = {
/* pre_save_fn */ object_asset_pre_save,
/*pre_save_fn*/ object_asset_pre_save,
};
IDTypeInfo IDType_ID_OB = {
/* id_code */ ID_OB,
/* id_filter */ FILTER_ID_OB,
/* main_listbase_index */ INDEX_ID_OB,
/* struct_size */ sizeof(Object),
/* name */ "Object",
/* name_plural */ "objects",
/* translation_context */ BLT_I18NCONTEXT_ID_OBJECT,
/* flags */ 0,
/* asset_type_info */ &AssetType_OB,
/*id_code*/ ID_OB,
/*id_filter*/ FILTER_ID_OB,
/*main_listbase_index*/ INDEX_ID_OB,
/*struct_size*/ sizeof(Object),
/*name*/ "Object",
/*name_plural*/ "objects",
/*translation_context*/ BLT_I18NCONTEXT_ID_OBJECT,
/*flags*/ 0,
/*asset_type_info*/ &AssetType_OB,
/* init_data */ object_init_data,
/* copy_data */ object_copy_data,
/* free_data */ object_free_data,
/* make_local */ nullptr,
/* foreach_id */ object_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ object_foreach_path,
/* owner_pointer_get */ nullptr,
/*init_data*/ object_init_data,
/*copy_data*/ object_copy_data,
/*free_data*/ object_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ object_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ object_foreach_path,
/*owner_pointer_get*/ nullptr,
/* blend_write */ object_blend_write,
/* blend_read_data */ object_blend_read_data,
/* blend_read_lib */ object_blend_read_lib,
/* blend_read_expand */ object_blend_read_expand,
/*blend_write*/ object_blend_write,
/*blend_read_data*/ object_blend_read_data,
/*blend_read_lib*/ object_blend_read_lib,
/*blend_read_expand*/ object_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ object_lib_override_apply_post,
/*lib_override_apply_post*/ object_lib_override_apply_post,
};
void BKE_object_workob_clear(Object *workob)

View File

@ -529,9 +529,8 @@ static void make_duplis_collection(const DupliContext *ctx)
}
static const DupliGenerator gen_dupli_collection = {
OB_DUPLICOLLECTION, /* type */
make_duplis_collection /* make_duplis */
};
/*type*/ OB_DUPLICOLLECTION,
/*make_duplis*/ make_duplis_collection};
/** \} */
@ -744,9 +743,8 @@ static void make_duplis_verts(const DupliContext *ctx)
}
static const DupliGenerator gen_dupli_verts = {
OB_DUPLIVERTS, /* type */
make_duplis_verts /* make_duplis */
};
/*type*/ OB_DUPLIVERTS,
/*make_duplis*/ make_duplis_verts};
/** \} */
@ -873,9 +871,8 @@ static void make_duplis_font(const DupliContext *ctx)
}
static const DupliGenerator gen_dupli_verts_font = {
OB_DUPLIVERTS, /* type */
make_duplis_font /* make_duplis */
};
/*type*/ OB_DUPLIVERTS,
/*make_duplis*/ make_duplis_font};
/** \} */
@ -1034,8 +1031,8 @@ static void make_duplis_geometry_set(const DupliContext *ctx)
}
static const DupliGenerator gen_dupli_geometry_set = {
GEOMETRY_SET_DUPLI_GENERATOR_TYPE,
make_duplis_geometry_set,
/*type*/ GEOMETRY_SET_DUPLI_GENERATOR_TYPE,
/*make_duplis*/ make_duplis_geometry_set,
};
/** \} */
@ -1335,9 +1332,8 @@ static void make_duplis_faces(const DupliContext *ctx)
}
static const DupliGenerator gen_dupli_faces = {
OB_DUPLIFACES, /* type */
make_duplis_faces /* make_duplis */
};
/*type*/ OB_DUPLIFACES,
/*make_duplis*/ make_duplis_faces};
/** \} */
@ -1685,9 +1681,8 @@ static void make_duplis_particles(const DupliContext *ctx)
}
static const DupliGenerator gen_dupli_particles = {
OB_DUPLIPARTS, /* type */
make_duplis_particles /* make_duplis */
};
/*type*/ OB_DUPLIPARTS,
/*make_duplis*/ make_duplis_particles};
/** \} */

View File

@ -133,33 +133,33 @@ static void palette_undo_preserve(BlendLibReader * /*reader*/, ID *id_new, ID *i
}
IDTypeInfo IDType_ID_PAL = {
/* id_code */ ID_PAL,
/* id_filter */ FILTER_ID_PAL,
/* main_listbase_index */ INDEX_ID_PAL,
/* struct_size */ sizeof(Palette),
/* name */ "Palette",
/* name_plural */ "palettes",
/* translation_context */ BLT_I18NCONTEXT_ID_PALETTE,
/* flags */ IDTYPE_FLAGS_NO_ANIMDATA,
/* asset_type_info */ nullptr,
/*id_code*/ ID_PAL,
/*id_filter*/ FILTER_ID_PAL,
/*main_listbase_index*/ INDEX_ID_PAL,
/*struct_size*/ sizeof(Palette),
/*name*/ "Palette",
/*name_plural*/ "palettes",
/*translation_context*/ BLT_I18NCONTEXT_ID_PALETTE,
/*flags*/ IDTYPE_FLAGS_NO_ANIMDATA,
/*asset_type_info*/ nullptr,
/* init_data */ palette_init_data,
/* copy_data */ palette_copy_data,
/* free_data */ palette_free_data,
/* make_local */ nullptr,
/* foreach_id */ nullptr,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ palette_init_data,
/*copy_data*/ palette_copy_data,
/*free_data*/ palette_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ nullptr,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ palette_blend_write,
/* blend_read_data */ palette_blend_read_data,
/* blend_read_lib */ nullptr,
/* blend_read_expand */ nullptr,
/*blend_write*/ palette_blend_write,
/*blend_read_data*/ palette_blend_read_data,
/*blend_read_lib*/ nullptr,
/*blend_read_expand*/ nullptr,
/* blend_read_undo_preserve */ palette_undo_preserve,
/*blend_read_undo_preserve*/ palette_undo_preserve,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
static void paint_curve_copy_data(Main * /*bmain*/,
@ -201,33 +201,33 @@ static void paint_curve_blend_read_data(BlendDataReader *reader, ID *id)
}
IDTypeInfo IDType_ID_PC = {
/* id_code */ ID_PC,
/* id_filter */ FILTER_ID_PC,
/* main_listbase_index */ INDEX_ID_PC,
/* struct_size */ sizeof(PaintCurve),
/* name */ "PaintCurve",
/* name_plural */ "paint_curves",
/* translation_context */ BLT_I18NCONTEXT_ID_PAINTCURVE,
/* flags */ IDTYPE_FLAGS_NO_ANIMDATA,
/* asset_type_info */ nullptr,
/*id_code*/ ID_PC,
/*id_filter*/ FILTER_ID_PC,
/*main_listbase_index*/ INDEX_ID_PC,
/*struct_size*/ sizeof(PaintCurve),
/*name*/ "PaintCurve",
/*name_plural*/ "paint_curves",
/*translation_context*/ BLT_I18NCONTEXT_ID_PAINTCURVE,
/*flags*/ IDTYPE_FLAGS_NO_ANIMDATA,
/*asset_type_info*/ nullptr,
/* init_data */ nullptr,
/* copy_data */ paint_curve_copy_data,
/* free_data */ paint_curve_free_data,
/* make_local */ nullptr,
/* foreach_id */ nullptr,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ nullptr,
/*copy_data*/ paint_curve_copy_data,
/*free_data*/ paint_curve_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ nullptr,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ paint_curve_blend_write,
/* blend_read_data */ paint_curve_blend_read_data,
/* blend_read_lib */ nullptr,
/* blend_read_expand */ nullptr,
/*blend_write*/ paint_curve_blend_write,
/*blend_read_data*/ paint_curve_blend_read_data,
/*blend_read_lib*/ nullptr,
/*blend_read_expand*/ nullptr,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
const uchar PAINT_CURSOR_SCULPT[3] = {255, 100, 100};

View File

@ -166,33 +166,33 @@ static void pointcloud_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_PT = {
/* id_code */ ID_PT,
/* id_filter */ FILTER_ID_PT,
/* main_listbase_index */ INDEX_ID_PT,
/* struct_size */ sizeof(PointCloud),
/* name */ "PointCloud",
/* name_plural */ "pointclouds",
/* translation_context */ BLT_I18NCONTEXT_ID_POINTCLOUD,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_PT,
/*id_filter*/ FILTER_ID_PT,
/*main_listbase_index*/ INDEX_ID_PT,
/*struct_size*/ sizeof(PointCloud),
/*name*/ "PointCloud",
/*name_plural*/ "pointclouds",
/*translation_context*/ BLT_I18NCONTEXT_ID_POINTCLOUD,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ pointcloud_init_data,
/* copy_data */ pointcloud_copy_data,
/* free_data */ pointcloud_free_data,
/* make_local */ nullptr,
/* foreach_id */ pointcloud_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ pointcloud_init_data,
/*copy_data*/ pointcloud_copy_data,
/*free_data*/ pointcloud_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ pointcloud_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ pointcloud_blend_write,
/* blend_read_data */ pointcloud_blend_read_data,
/* blend_read_lib */ pointcloud_blend_read_lib,
/* blend_read_expand */ pointcloud_blend_read_expand,
/*blend_write*/ pointcloud_blend_write,
/*blend_read_data*/ pointcloud_blend_read_data,
/*blend_read_lib*/ pointcloud_blend_read_lib,
/*blend_read_expand*/ pointcloud_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
static void pointcloud_random(PointCloud *pointcloud)

View File

@ -132,33 +132,33 @@ static void simulation_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_SIM = {
/* id_code */ ID_SIM,
/* id_filter */ FILTER_ID_SIM,
/* main_listbase_index */ INDEX_ID_SIM,
/* struct_size */ sizeof(Simulation),
/* name */ "Simulation",
/* name_plural */ "simulations",
/* translation_context */ BLT_I18NCONTEXT_ID_SIMULATION,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_SIM,
/*id_filter*/ FILTER_ID_SIM,
/*main_listbase_index*/ INDEX_ID_SIM,
/*struct_size*/ sizeof(Simulation),
/*name*/ "Simulation",
/*name_plural*/ "simulations",
/*translation_context*/ BLT_I18NCONTEXT_ID_SIMULATION,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ simulation_init_data,
/* copy_data */ simulation_copy_data,
/* free_data */ simulation_free_data,
/* make_local */ nullptr,
/* foreach_id */ simulation_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ simulation_init_data,
/*copy_data*/ simulation_copy_data,
/*free_data*/ simulation_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ simulation_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ simulation_blend_write,
/* blend_read_data */ simulation_blend_read_data,
/* blend_read_lib */ simulation_blend_read_lib,
/* blend_read_expand */ simulation_blend_read_expand,
/*blend_write*/ simulation_blend_write,
/*blend_read_data*/ simulation_blend_read_data,
/*blend_read_lib*/ simulation_blend_read_lib,
/*blend_read_expand*/ simulation_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
void *BKE_simulation_add(Main *bmain, const char *name)

View File

@ -191,33 +191,33 @@ static void texture_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_TE = {
/* id_code */ ID_TE,
/* id_filter */ FILTER_ID_TE,
/* main_listbase_index */ INDEX_ID_TE,
/* struct_size */ sizeof(Tex),
/* name */ "Texture",
/* name_plural */ "textures",
/* translation_context */ BLT_I18NCONTEXT_ID_TEXTURE,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_TE,
/*id_filter*/ FILTER_ID_TE,
/*main_listbase_index*/ INDEX_ID_TE,
/*struct_size*/ sizeof(Tex),
/*name*/ "Texture",
/*name_plural*/ "textures",
/*translation_context*/ BLT_I18NCONTEXT_ID_TEXTURE,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ texture_init_data,
/* copy_data */ texture_copy_data,
/* free_data */ texture_free_data,
/* make_local */ nullptr,
/* foreach_id */ texture_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ texture_init_data,
/*copy_data*/ texture_copy_data,
/*free_data*/ texture_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ texture_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ texture_blend_write,
/* blend_read_data */ texture_blend_read_data,
/* blend_read_lib */ texture_blend_read_lib,
/* blend_read_expand */ texture_blend_read_expand,
/*blend_write*/ texture_blend_write,
/*blend_read_data*/ texture_blend_read_data,
/*blend_read_lib*/ texture_blend_read_lib,
/*blend_read_expand*/ texture_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
void BKE_texture_mtex_foreach_id(LibraryForeachIDData *data, MTex *mtex)

View File

@ -564,8 +564,8 @@ static void volume_foreach_cache(ID *id,
{
Volume *volume = (Volume *)id;
IDCacheKey key = {
/* id_session_uuid */ id->session_uuid,
/* offset_in_ID */ offsetof(Volume, runtime.grids),
/*id_session_uuid*/ id->session_uuid,
/*offset_in_ID*/ offsetof(Volume, runtime.grids),
};
function_callback(id, &key, (void **)&volume->runtime.grids, 0, user_data);
@ -644,33 +644,33 @@ static void volume_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_VO = {
/* id_code */ ID_VO,
/* id_filter */ FILTER_ID_VO,
/* main_listbase_index */ INDEX_ID_VO,
/* struct_size */ sizeof(Volume),
/* name */ "Volume",
/* name_plural */ "volumes",
/* translation_context */ BLT_I18NCONTEXT_ID_VOLUME,
/* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/* asset_type_info */ nullptr,
/*id_code*/ ID_VO,
/*id_filter*/ FILTER_ID_VO,
/*main_listbase_index*/ INDEX_ID_VO,
/*struct_size*/ sizeof(Volume),
/*name*/ "Volume",
/*name_plural*/ "volumes",
/*translation_context*/ BLT_I18NCONTEXT_ID_VOLUME,
/*flags*/ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
/*asset_type_info*/ nullptr,
/* init_data */ volume_init_data,
/* copy_data */ volume_copy_data,
/* free_data */ volume_free_data,
/* make_local */ nullptr,
/* foreach_id */ volume_foreach_id,
/* foreach_cache */ volume_foreach_cache,
/* foreach_path */ volume_foreach_path,
/* owner_pointer_get */ nullptr,
/*init_data*/ volume_init_data,
/*copy_data*/ volume_copy_data,
/*free_data*/ volume_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ volume_foreach_id,
/*foreach_cache*/ volume_foreach_cache,
/*foreach_path*/ volume_foreach_path,
/*owner_pointer_get*/ nullptr,
/* blend_write */ volume_blend_write,
/* blend_read_data */ volume_blend_read_data,
/* blend_read_lib */ volume_blend_read_lib,
/* blend_read_expand */ volume_blend_read_expand,
/*blend_write*/ volume_blend_write,
/*blend_read_data*/ volume_blend_read_data,
/*blend_read_lib*/ volume_blend_read_lib,
/*blend_read_expand*/ volume_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
void BKE_volume_init_grids(Volume *volume)

View File

@ -186,33 +186,33 @@ static void workspace_blend_read_expand(BlendExpander *expander, ID *id)
}
IDTypeInfo IDType_ID_WS = {
/* id_code */ ID_WS,
/* id_filter */ FILTER_ID_WS,
/* main_listbase_index */ INDEX_ID_WS,
/* struct_size */ sizeof(WorkSpace),
/* name */ "WorkSpace",
/* name_plural */ "workspaces",
/* translation_context */ BLT_I18NCONTEXT_ID_WORKSPACE,
/* flags */ IDTYPE_FLAGS_NO_COPY | IDTYPE_FLAGS_ONLY_APPEND | IDTYPE_FLAGS_NO_ANIMDATA,
/* asset_type_info */ nullptr,
/*id_code*/ ID_WS,
/*id_filter*/ FILTER_ID_WS,
/*main_listbase_index*/ INDEX_ID_WS,
/*struct_size*/ sizeof(WorkSpace),
/*name*/ "WorkSpace",
/*name_plural*/ "workspaces",
/*translation_context*/ BLT_I18NCONTEXT_ID_WORKSPACE,
/*flags*/ IDTYPE_FLAGS_NO_COPY | IDTYPE_FLAGS_ONLY_APPEND | IDTYPE_FLAGS_NO_ANIMDATA,
/*asset_type_info*/ nullptr,
/* init_data */ workspace_init_data,
/* copy_data */ nullptr,
/* free_data */ workspace_free_data,
/* make_local */ nullptr,
/* foreach_id */ workspace_foreach_id,
/* foreach_cache */ nullptr,
/* foreach_path */ nullptr,
/* owner_pointer_get */ nullptr,
/*init_data*/ workspace_init_data,
/*copy_data*/ nullptr,
/*free_data*/ workspace_free_data,
/*make_local*/ nullptr,
/*foreach_id*/ workspace_foreach_id,
/*foreach_cache*/ nullptr,
/*foreach_path*/ nullptr,
/*owner_pointer_get*/ nullptr,
/* blend_write */ workspace_blend_write,
/* blend_read_data */ workspace_blend_read_data,
/* blend_read_lib */ workspace_blend_read_lib,
/* blend_read_expand */ workspace_blend_read_expand,
/*blend_write*/ workspace_blend_write,
/*blend_read_data*/ workspace_blend_read_data,
/*blend_read_lib*/ workspace_blend_read_lib,
/*blend_read_expand*/ workspace_blend_read_expand,
/* blend_read_undo_preserve */ nullptr,
/*blend_read_undo_preserve*/ nullptr,
/* lib_override_apply_post */ nullptr,
/*lib_override_apply_post*/ nullptr,
};
/* -------------------------------------------------------------------- */

View File

@ -255,7 +255,7 @@ DrawEngineType draw_engine_basic_type = {
&basic_data_size,
NULL,
&basic_engine_free,
NULL, /* instance_free */
/*instance_free*/ NULL,
&basic_cache_init,
&basic_cache_populate,
&basic_cache_finish,

View File

@ -249,20 +249,20 @@ extern "C" {
static const DrawEngineDataSize compositor_data_size = DRW_VIEWPORT_DATA_SIZE(COMPOSITOR_Data);
DrawEngineType draw_engine_compositor_type = {
nullptr, /* next */
nullptr, /* prev */
N_("Compositor"), /* idname */
&compositor_data_size, /* vedata_size */
&compositor_engine_init, /* engine_init */
nullptr, /* engine_free */
&compositor_engine_free, /* instance_free */
nullptr, /* cache_init */
nullptr, /* cache_populate */
nullptr, /* cache_finish */
&compositor_engine_draw, /* draw_scene */
&compositor_engine_update, /* view_update */
nullptr, /* id_update */
nullptr, /* render_to_image */
nullptr, /* store_metadata */
/*next*/ nullptr,
/*prev*/ nullptr,
/*idname*/ N_("Compositor"),
/*vedata_size*/ &compositor_data_size,
/*engine_init*/ &compositor_engine_init,
/*engine_free*/ nullptr,
/*instance_free*/ &compositor_engine_free,
/*cache_init*/ nullptr,
/*cache_populate*/ nullptr,
/*cache_finish*/ nullptr,
/*draw_scene*/ &compositor_engine_draw,
/*view_update*/ &compositor_engine_update,
/*id_update*/ nullptr,
/*render_to_image*/ nullptr,
/*store_metadata*/ nullptr,
};
}

View File

@ -622,7 +622,7 @@ DrawEngineType draw_engine_eevee_type = {
&eevee_data_size,
&eevee_engine_init,
&eevee_engine_free,
NULL, /* instance_free */
/*instance_free*/ NULL,
&eevee_cache_init,
&EEVEE_cache_populate,
&eevee_cache_finish,

View File

@ -440,7 +440,7 @@ DrawEngineType draw_engine_external_type = {
&external_data_size,
&external_engine_init,
&external_engine_free,
NULL, /* instance_free */
/*instance_free*/ NULL,
&external_cache_init,
&external_cache_populate,
&external_cache_finish,

View File

@ -978,7 +978,7 @@ DrawEngineType draw_engine_gpencil_type = {
&GPENCIL_data_size,
&GPENCIL_engine_init,
&GPENCIL_engine_free,
NULL, /* instance_free */
/*instance_free*/ NULL,
&GPENCIL_cache_init,
&GPENCIL_cache_populate,
&GPENCIL_cache_finish,

View File

@ -185,20 +185,20 @@ extern "C" {
using namespace blender::draw::image_engine;
DrawEngineType draw_engine_image_type = {
nullptr, /* next */
nullptr, /* prev */
N_("UV/Image"), /* idname */
&IMAGE_data_size, /* vedata_size */
&IMAGE_engine_init, /* engine_init */
&IMAGE_engine_free, /* engine_free */
&IMAGE_instance_free, /* instance_free */
&IMAGE_cache_init, /* cache_init */
&IMAGE_cache_populate, /* cache_populate */
nullptr, /* cache_finish */
&IMAGE_draw_scene, /* draw_scene */
nullptr, /* view_update */
nullptr, /* id_update */
nullptr, /* render_to_image */
nullptr, /* store_metadata */
/*next*/ nullptr,
/*prev*/ nullptr,
/*idname*/ N_("UV/Image"),
/*vedata_size*/ &IMAGE_data_size,
/*engine_init*/ &IMAGE_engine_init,
/*engine_free*/ &IMAGE_engine_free,
/*instance_free*/ &IMAGE_instance_free,
/*cache_init*/ &IMAGE_cache_init,
/*cache_populate*/ &IMAGE_cache_populate,
/*cache_finish*/ nullptr,
/*draw_scene*/ &IMAGE_draw_scene,
/*view_update*/ nullptr,
/*id_update*/ nullptr,
/*render_to_image*/ nullptr,
/*store_metadata*/ nullptr,
};
}

View File

@ -105,7 +105,7 @@ DrawEngineType draw_engine_debug_select_type = {
&select_debug_data_size,
&select_debug_engine_init,
&select_debug_engine_free,
NULL, /* instance_free */
/*instance_free*/ NULL,
NULL,
NULL,
NULL,

View File

@ -330,7 +330,7 @@ DrawEngineType draw_engine_select_type = {
&select_data_size,
&select_engine_init,
&select_engine_free,
NULL, /* instance_free */
/*instance_free*/ NULL,
&select_cache_init,
&select_cache_populate,
NULL,

View File

@ -672,7 +672,7 @@ DrawEngineType draw_engine_workbench = {
&workbench_data_size,
&workbench_engine_init,
&workbench_engine_free,
NULL, /* instance_free */
/*instance_free*/ NULL,
&workbench_cache_init,
&workbench_cache_populate,
&workbench_cache_finish,

View File

@ -2015,7 +2015,7 @@ void DRW_render_to_image(RenderEngine *engine, struct Depsgraph *depsgraph)
size[0],
size[1],
view_layer->name,
/* RR_ALL_VIEWS */ NULL);
/*RR_ALL_VIEWS*/ NULL);
RenderLayer *render_layer = render_result->layers.first;
for (RenderView *render_view = render_result->views.first; render_view != NULL;
render_view = render_view->next) {

File diff suppressed because it is too large Load Diff

View File

@ -240,7 +240,7 @@ static void select_pchan_for_action_group(bAnimContext *ac, bActionGroup *agrp,
}
}
static ListBase /* bAnimListElem */ anim_channels_for_selection(bAnimContext *ac)
static ListBase /*bAnimListElem*/ anim_channels_for_selection(bAnimContext *ac)
{
ListBase anim_data = {NULL, NULL};

View File

@ -480,7 +480,7 @@ static void ED_keylist_draw_list_elem_prepare_for_drawing(AnimKeylistDrawListEle
}
typedef struct AnimKeylistDrawList {
ListBase /* AnimKeylistDrawListElem */ channels;
ListBase /*AnimKeylistDrawListElem*/ channels;
} AnimKeylistDrawList;
AnimKeylistDrawList *ED_keylist_draw_list_create(void)

View File

@ -61,7 +61,7 @@ struct AnimKeylist {
/* Before initializing the runtime, the key_columns list base is used to quickly add columns.
* Contains `ActKeyColumn`. Should not be used after runtime is initialized. */
ListBase /* ActKeyColumn */ key_columns;
ListBase /*ActKeyColumn*/ key_columns;
/* Last accessed column in the key_columns list base. Inserting columns are typically done in
* order. The last accessed column is used as starting point to search for a location to add or
* update the next column. */
@ -71,9 +71,9 @@ struct AnimKeylist {
/* When initializing the runtime the columns from the list base `AnimKeyList.key_columns` are
* transferred to an array to support binary searching and index based access. */
blender::Array<ActKeyColumn> key_columns;
/* Wrapper around runtime.key_columns so it can still be accessed as a ListBase. Elements are
* owned by runtime.key_columns. */
ListBase /* ActKeyColumn */ list_wrapper;
/* Wrapper around runtime.key_columns so it can still be accessed as a ListBase.
* Elements are owned by `runtime.key_columns`. */
ListBase /*ActKeyColumn*/ list_wrapper;
} runtime;
AnimKeylist()

View File

@ -908,11 +908,11 @@ static bool has_external_files(Main *bmain, struct ReportList *reports)
| BKE_BPATH_TRAVERSE_SKIP_WEAK_REFERENCES); /* Only care about actually used files. */
BPathForeachPathData bpath_data = {
/* bmain */ bmain,
/* callback_function */ &external_file_check_callback,
/* flag */ flag,
/* user_data */ &callback_info,
/* absolute_base_path */ nullptr,
/*bmain*/ bmain,
/*callback_function*/ &external_file_check_callback,
/*flag*/ flag,
/*user_data*/ &callback_info,
/*absolute_base_path*/ nullptr,
};
BKE_bpath_foreach_path_main(&bpath_data);

View File

@ -131,7 +131,7 @@ void ED_file_indexer_entries_clear(FileIndexerEntries *indexer_entries);
*/
void ED_file_indexer_entries_extend_from_datablock_infos(
FileIndexerEntries *indexer_entries,
const LinkNode * /* BLODataBlockInfo */ datablock_infos,
const LinkNode * /*BLODataBlockInfo*/ datablock_infos,
int idcode);
#ifdef __cplusplus

View File

@ -55,7 +55,7 @@ extern "C" {
void ED_file_indexer_entries_extend_from_datablock_infos(
FileIndexerEntries *indexer_entries,
const LinkNode * /* BLODataBlockInfo */ datablock_infos,
const LinkNode * /*BLODataBlockInfo*/ datablock_infos,
const int idcode)
{
for (const LinkNode *ln = datablock_infos; ln; ln = ln->next) {

View File

@ -936,8 +936,8 @@ static void special_aftertrans_update__actedit(bContext *C, TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Action = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransActionData,
/* recalcData */ recalcData_actedit,
/* special_aftertrans_update */ special_aftertrans_update__actedit,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransActionData,
/*recalcData*/ recalcData_actedit,
/*special_aftertrans_update*/ special_aftertrans_update__actedit,
};

View File

@ -1771,15 +1771,15 @@ static void special_aftertrans_update__pose(bContext *C, TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_EditArmature = {
/* flags */ (T_EDIT | T_POINTS),
/* createTransData */ createTransArmatureVerts,
/* recalcData */ recalcData_edit_armature,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_EDIT | T_POINTS),
/*createTransData*/ createTransArmatureVerts,
/*recalcData*/ recalcData_edit_armature,
/*special_aftertrans_update*/ NULL,
};
TransConvertTypeInfo TransConvertType_Pose = {
/* flags */ 0,
/* createTransData */ createTransPose,
/* recalcData */ recalcData_pose,
/* special_aftertrans_update */ special_aftertrans_update__pose,
/*flags*/ 0,
/*createTransData*/ createTransPose,
/*recalcData*/ recalcData_pose,
/*special_aftertrans_update*/ special_aftertrans_update__pose,
};

View File

@ -186,22 +186,22 @@ static void recalcData_cursor_view3d(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_CursorImage = {
/* flags */ T_2D_EDIT,
/* createTransData */ createTransCursor_image,
/* recalcData */ recalcData_cursor_image,
/* special_aftertrans_update */ NULL,
/*flags*/ T_2D_EDIT,
/*createTransData*/ createTransCursor_image,
/*recalcData*/ recalcData_cursor_image,
/*special_aftertrans_update*/ NULL,
};
TransConvertTypeInfo TransConvertType_CursorSequencer = {
/* flags */ T_2D_EDIT,
/* createTransData */ createTransCursor_sequencer,
/* recalcData */ recalcData_cursor_sequencer,
/* special_aftertrans_update */ NULL,
/*flags*/ T_2D_EDIT,
/*createTransData*/ createTransCursor_sequencer,
/*recalcData*/ recalcData_cursor_sequencer,
/*special_aftertrans_update*/ NULL,
};
TransConvertTypeInfo TransConvertType_Cursor3D = {
/* flags */ 0,
/* createTransData */ createTransCursor_view3d,
/* recalcData */ recalcData_cursor_view3d,
/* special_aftertrans_update */ NULL,
/*flags*/ 0,
/*createTransData*/ createTransCursor_view3d,
/*recalcData*/ recalcData_cursor_view3d,
/*special_aftertrans_update*/ NULL,
};

View File

@ -449,8 +449,8 @@ static void recalcData_curve(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Curve = {
/* flags */ (T_EDIT | T_POINTS),
/* createTransData */ createTransCurveVerts,
/* recalcData */ recalcData_curve,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_EDIT | T_POINTS),
/*createTransData*/ createTransCurveVerts,
/*recalcData*/ recalcData_curve,
/*special_aftertrans_update*/ NULL,
};

View File

@ -766,8 +766,8 @@ static void recalcData_gpencil_strokes(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_GPencil = {
/* flags */ (T_EDIT | T_POINTS),
/* createTransData */ createTransGPencil,
/* recalcData */ recalcData_gpencil_strokes,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_EDIT | T_POINTS),
/*createTransData*/ createTransGPencil,
/*recalcData*/ recalcData_gpencil_strokes,
/*special_aftertrans_update*/ NULL,
};

View File

@ -1035,8 +1035,8 @@ static void special_aftertrans_update__graph(bContext *C, TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Graph = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransGraphEditData,
/* recalcData */ recalcData_graphedit,
/* special_aftertrans_update */ special_aftertrans_update__graph,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransGraphEditData,
/*recalcData*/ recalcData_graphedit,
/*special_aftertrans_update*/ special_aftertrans_update__graph,
};

View File

@ -117,8 +117,8 @@ static void recalcData_lattice(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Lattice = {
/* flags */ (T_EDIT | T_POINTS),
/* createTransData */ createTransLatticeVerts,
/* recalcData */ recalcData_lattice,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_EDIT | T_POINTS),
/*createTransData*/ createTransLatticeVerts,
/*recalcData*/ recalcData_lattice,
/*special_aftertrans_update*/ NULL,
};

View File

@ -465,8 +465,8 @@ static void special_aftertrans_update__mask(bContext *C, TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Mask = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransMaskingData,
/* recalcData */ recalcData_mask_common,
/* special_aftertrans_update */ special_aftertrans_update__mask,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransMaskingData,
/*recalcData*/ recalcData_mask_common,
/*special_aftertrans_update*/ special_aftertrans_update__mask,
};

View File

@ -135,8 +135,8 @@ static void recalcData_mball(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_MBall = {
/* flags */ (T_EDIT | T_POINTS),
/* createTransData */ createTransMBallVerts,
/* recalcData */ recalcData_mball,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_EDIT | T_POINTS),
/*createTransData*/ createTransMBallVerts,
/*recalcData*/ recalcData_mball,
/*special_aftertrans_update*/ NULL,
};

View File

@ -2139,8 +2139,8 @@ static void special_aftertrans_update__mesh(bContext *UNUSED(C), TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Mesh = {
/* flags */ (T_EDIT | T_POINTS),
/* createTransData */ createTransEditVerts,
/* recalcData */ recalcData_mesh,
/* special_aftertrans_update */ special_aftertrans_update__mesh,
/*flags*/ (T_EDIT | T_POINTS),
/*createTransData*/ createTransEditVerts,
/*recalcData*/ recalcData_mesh,
/*special_aftertrans_update*/ special_aftertrans_update__mesh,
};

View File

@ -122,8 +122,8 @@ static void recalcData_mesh_edge(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_MeshEdge = {
/* flags */ T_EDIT,
/* createTransData */ createTransEdge,
/* recalcData */ recalcData_mesh_edge,
/* special_aftertrans_update */ NULL,
/*flags*/ T_EDIT,
/*createTransData*/ createTransEdge,
/*recalcData*/ recalcData_mesh_edge,
/*special_aftertrans_update*/ NULL,
};

View File

@ -292,8 +292,8 @@ static void recalcData_mesh_skin(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_MeshSkin = {
/* flags */ (T_EDIT | T_POINTS),
/* createTransData */ createTransMeshSkin,
/* recalcData */ recalcData_mesh_skin,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_EDIT | T_POINTS),
/*createTransData*/ createTransMeshSkin,
/*recalcData*/ recalcData_mesh_skin,
/*special_aftertrans_update*/ NULL,
};

View File

@ -470,8 +470,8 @@ static void recalcData_uv(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_MeshUV = {
/* flags */ (T_EDIT | T_POINTS | T_2D_EDIT),
/* createTransData */ createTransUVs,
/* recalcData */ recalcData_uv,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_EDIT | T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransUVs,
/*recalcData*/ recalcData_uv,
/*special_aftertrans_update*/ NULL,
};

View File

@ -294,8 +294,8 @@ static void recalcData_mesh_cdata(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_MeshVertCData = {
/* flags */ (T_EDIT | T_POINTS),
/* createTransData */ createTransMeshVertCData,
/* recalcData */ recalcData_mesh_cdata,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_EDIT | T_POINTS),
/*createTransData*/ createTransMeshVertCData,
/*recalcData*/ recalcData_mesh_cdata,
/*special_aftertrans_update*/ NULL,
};

View File

@ -542,8 +542,8 @@ static void special_aftertrans_update__nla(bContext *C, TransInfo *UNUSED(t))
/** \} */
TransConvertTypeInfo TransConvertType_NLA = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransNlaData,
/* recalcData */ recalcData_nla,
/* special_aftertrans_update */ special_aftertrans_update__nla,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransNlaData,
/*recalcData*/ recalcData_nla,
/*special_aftertrans_update*/ special_aftertrans_update__nla,
};

View File

@ -303,8 +303,8 @@ static void special_aftertrans_update__node(bContext *C, TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Node = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransNodeData,
/* recalcData */ flushTransNodes,
/* special_aftertrans_update */ special_aftertrans_update__node,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransNodeData,
/*recalcData*/ flushTransNodes,
/*special_aftertrans_update*/ special_aftertrans_update__node,
};

View File

@ -1006,8 +1006,8 @@ static void special_aftertrans_update__object(bContext *C, TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Object = {
/* flags */ 0,
/* createTransData */ createTransObject,
/* recalcData */ recalcData_objects,
/* special_aftertrans_update */ special_aftertrans_update__object,
/*flags*/ 0,
/*createTransData*/ createTransObject,
/*recalcData*/ recalcData_objects,
/*special_aftertrans_update*/ special_aftertrans_update__object,
};

View File

@ -110,8 +110,8 @@ static void recalcData_texspace(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_ObjectTexSpace = {
/* flags */ 0,
/* createTransData */ createTransTexspace,
/* recalcData */ recalcData_texspace,
/* special_aftertrans_update */ NULL,
/*flags*/ 0,
/*createTransData*/ createTransTexspace,
/*recalcData*/ recalcData_texspace,
/*special_aftertrans_update*/ NULL,
};

View File

@ -206,8 +206,8 @@ static void flushTransPaintCurve(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_PaintCurve = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransPaintCurveVerts,
/* recalcData */ flushTransPaintCurve,
/* special_aftertrans_update */ NULL,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransPaintCurveVerts,
/*recalcData*/ flushTransPaintCurve,
/*special_aftertrans_update*/ NULL,
};

View File

@ -249,8 +249,8 @@ static void recalcData_particles(TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Particle = {
/* flags */ T_POINTS,
/* createTransData */ createTransParticleVerts,
/* recalcData */ recalcData_particles,
/* special_aftertrans_update */ NULL,
/*flags*/ T_POINTS,
/*createTransData*/ createTransParticleVerts,
/*recalcData*/ recalcData_particles,
/*special_aftertrans_update*/ NULL,
};

View File

@ -120,8 +120,8 @@ static void special_aftertrans_update__sculpt(bContext *C, TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Sculpt = {
/* flags */ 0,
/* createTransData */ createTransSculpt,
/* recalcData */ recalcData_sculpt,
/* special_aftertrans_update */ special_aftertrans_update__sculpt,
/*flags*/ 0,
/*createTransData*/ createTransSculpt,
/*recalcData*/ recalcData_sculpt,
/*special_aftertrans_update*/ special_aftertrans_update__sculpt,
};

View File

@ -734,8 +734,8 @@ void transform_convert_sequencer_channel_clamp(TransInfo *t, float r_val[2])
/** \} */
TransConvertTypeInfo TransConvertType_Sequencer = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransSeqData,
/* recalcData */ recalcData_sequencer,
/* special_aftertrans_update */ special_aftertrans_update__sequencer,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransSeqData,
/*recalcData*/ recalcData_sequencer,
/*special_aftertrans_update*/ special_aftertrans_update__sequencer,
};

View File

@ -278,8 +278,8 @@ static void special_aftertrans_update__sequencer_image(bContext *UNUSED(C), Tran
}
TransConvertTypeInfo TransConvertType_SequencerImage = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransSeqImageData,
/* recalcData */ recalcData_sequencer_image,
/* special_aftertrans_update */ special_aftertrans_update__sequencer_image,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransSeqImageData,
/*recalcData*/ recalcData_sequencer_image,
/*special_aftertrans_update*/ special_aftertrans_update__sequencer_image,
};

View File

@ -779,8 +779,8 @@ static void special_aftertrans_update__movieclip(bContext *C, TransInfo *t)
/** \} */
TransConvertTypeInfo TransConvertType_Tracking = {
/* flags */ (T_POINTS | T_2D_EDIT),
/* createTransData */ createTransTrackingData,
/* recalcData */ recalcData_tracking,
/* special_aftertrans_update */ special_aftertrans_update__movieclip,
/*flags*/ (T_POINTS | T_2D_EDIT),
/*createTransData*/ createTransTrackingData,
/*recalcData*/ recalcData_tracking,
/*special_aftertrans_update*/ special_aftertrans_update__movieclip,
};

View File

@ -72,12 +72,11 @@ static void load_post_callback(struct Main * /*main*/,
}
static bCallbackFuncStore load_post_callback_funcstore = {
nullptr, /* next */
nullptr, /* prev */
load_post_callback, /* func */
nullptr, /* arg */
0 /* alloc */
};
/*next*/ nullptr,
/*prev*/ nullptr,
/*func*/ load_post_callback,
/*arg*/ nullptr,
/*alloc*/ 0};
//=======================================================
// Initialization

View File

@ -189,24 +189,24 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Armature = {
/* name */ N_("Armature"),
/* structName */ "ArmatureGpencilModifierData",
/* structSize */ sizeof(ArmatureGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Armature"),
/*structName*/ "ArmatureGpencilModifierData",
/*structSize*/ sizeof(ArmatureGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -485,25 +485,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Array = {
/* name */ N_("Array"),
/* structName */ "ArrayGpencilModifierData",
/* structSize */ sizeof(ArrayGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Array"),
/*structName*/ "ArrayGpencilModifierData",
/*structSize*/ sizeof(ArrayGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ NULL,
/* generateStrokes */ generateStrokes,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ NULL,
/*generateStrokes*/ generateStrokes,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -1038,25 +1038,25 @@ static void updateDepsgraph(GpencilModifierData *md,
/* ******************************************** */
GpencilModifierTypeInfo modifierType_Gpencil_Build = {
/* name */ N_("Build"),
/* structName */ "BuildGpencilModifierData",
/* structSize */ sizeof(BuildGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_NoApply,
/*name*/ N_("Build"),
/*structName*/ "BuildGpencilModifierData",
/*structSize*/ sizeof(BuildGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_NoApply,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ NULL,
/* generateStrokes */ generateStrokes,
/* bakeModifier */ NULL,
/* remapTime */ NULL,
/*deformStroke*/ NULL,
/*generateStrokes*/ generateStrokes,
/*bakeModifier*/ NULL,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ dependsOnTime,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ dependsOnTime,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -204,25 +204,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Color = {
/* name */ N_("Hue/Saturation"),
/* structName */ "ColorGpencilModifierData",
/* structSize */ sizeof(ColorGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Hue/Saturation"),
/*structName*/ "ColorGpencilModifierData",
/*structSize*/ sizeof(ColorGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -367,25 +367,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Dash = {
/* name */ N_("Dot Dash"),
/* structName */ "DashGpencilModifierData",
/* structSize */ sizeof(DashGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Dot Dash"),
/*structName*/ "DashGpencilModifierData",
/*structSize*/ sizeof(DashGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ NULL,
/* generateStrokes */ generateStrokes,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ NULL,
/*generateStrokes*/ generateStrokes,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -645,25 +645,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Envelope = {
/* name */ N_("Envelope"),
/* structName */ "EnvelopeGpencilModifierData",
/* structSize */ sizeof(EnvelopeGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Envelope"),
/*structName*/ "EnvelopeGpencilModifierData",
/*structSize*/ sizeof(EnvelopeGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ generateStrokes,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ generateStrokes,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -387,25 +387,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Hook = {
/* name */ N_("Hook"),
/* structName */ "HookGpencilModifierData",
/* structSize */ sizeof(HookGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Hook"),
/*structName*/ "HookGpencilModifierData",
/*structSize*/ sizeof(HookGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -247,25 +247,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Lattice = {
/* name */ N_("Lattice"),
/* structName */ "LatticeGpencilModifierData",
/* structSize */ sizeof(LatticeGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Lattice"),
/*structName*/ "LatticeGpencilModifierData",
/*structSize*/ sizeof(LatticeGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -355,25 +355,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Length = {
/* name */ N_("Length"),
/* structName */ "LengthGpencilModifierData",
/* structSize */ sizeof(LengthGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Length"),
/*structName*/ "LengthGpencilModifierData",
/*structSize*/ sizeof(LengthGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -809,25 +809,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Lineart = {
/* name. */ "Line Art",
/* structName. */ "LineartGpencilModifierData",
/* structSize. */ sizeof(LineartGpencilModifierData),
/* type. */ eGpencilModifierTypeType_Gpencil,
/* flags. */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ "Line Art",
/*structName*/ "LineartGpencilModifierData",
/*structSize*/ sizeof(LineartGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData. */ copyData,
/*copyData*/ copyData,
/* deformStroke. */ NULL,
/* generateStrokes. */ generateStrokes,
/* bakeModifier. */ bakeModifier,
/* remapTime. */ NULL,
/*deformStroke*/ NULL,
/*generateStrokes*/ generateStrokes,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData. */ initData,
/* freeData. */ NULL,
/* isDisabled. */ isDisabled,
/* updateDepsgraph. */ updateDepsgraph,
/* dependsOnTime. */ NULL,
/* foreachIDLink. */ foreachIDLink,
/* foreachTexLink. */ NULL,
/* panelRegister. */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -243,25 +243,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Mirror = {
/* name */ N_("Mirror"),
/* structName */ "MirrorGpencilModifierData",
/* structSize */ sizeof(MirrorGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Mirror"),
/*structName*/ "MirrorGpencilModifierData",
/*structSize*/ sizeof(MirrorGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ NULL,
/* generateStrokes */ generateStrokes,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ NULL,
/*generateStrokes*/ generateStrokes,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -313,25 +313,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Multiply = {
/* name */ N_("MultipleStrokes"),
/* structName */ "MultiplyGpencilModifierData",
/* structSize */ sizeof(MultiplyGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ 0,
/*name*/ N_("MultipleStrokes"),
/*structName*/ "MultiplyGpencilModifierData",
/*structSize*/ sizeof(MultiplyGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ 0,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ NULL,
/* generateStrokes */ generateStrokes,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ NULL,
/*generateStrokes*/ generateStrokes,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -339,25 +339,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Noise = {
/* name */ N_("Noise"),
/* structName */ "NoiseGpencilModifierData",
/* structSize */ sizeof(NoiseGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Noise"),
/*structName*/ "NoiseGpencilModifierData",
/*structSize*/ sizeof(NoiseGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ dependsOnTime,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ dependsOnTime,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -309,25 +309,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Offset = {
/* name */ N_("Offset"),
/* structName */ "OffsetGpencilModifierData",
/* structSize */ sizeof(OffsetGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Offset"),
/*structName*/ "OffsetGpencilModifierData",
/*structSize*/ sizeof(OffsetGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -279,25 +279,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Opacity = {
/* name */ N_("Opacity"),
/* structName */ "OpacityGpencilModifierData",
/* structSize */ sizeof(OpacityGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Opacity"),
/*structName*/ "OpacityGpencilModifierData",
/*structSize*/ sizeof(OpacityGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -324,25 +324,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Outline = {
/* name */ N_("Outline"),
/* structName */ "OutlineGpencilModifierData",
/* structSize */ sizeof(OutlineGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Outline"),
/*structName*/ "OutlineGpencilModifierData",
/*structSize*/ sizeof(OutlineGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ NULL,
/* generateStrokes */ generateStrokes,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ NULL,
/*generateStrokes*/ generateStrokes,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -306,25 +306,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Shrinkwrap = {
/* name */ N_("Shrinkwrap"),
/* structName */ "ShrinkwrapGpencilModifierData",
/* structSize */ sizeof(ShrinkwrapGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Shrinkwrap"),
/*structName*/ "ShrinkwrapGpencilModifierData",
/*structSize*/ sizeof(ShrinkwrapGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -159,25 +159,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Simplify = {
/* name */ N_("Simplify"),
/* structName */ "SimplifyGpencilModifierData",
/* structSize */ sizeof(SimplifyGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Simplify"),
/*structName*/ "SimplifyGpencilModifierData",
/*structSize*/ sizeof(SimplifyGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -203,25 +203,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Smooth = {
/* name */ N_("Smooth"),
/* structName */ "SmoothGpencilModifierData",
/* structSize */ sizeof(SmoothGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Smooth"),
/*structName*/ "SmoothGpencilModifierData",
/*structSize*/ sizeof(SmoothGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -124,25 +124,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Subdiv = {
/* name */ N_("Subdivide"),
/* structName */ "SubdivGpencilModifierData",
/* structSize */ sizeof(SubdivGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Subdivide"),
/*structName*/ "SubdivGpencilModifierData",
/*structSize*/ sizeof(SubdivGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -178,25 +178,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Texture = {
/* name */ N_("TextureMapping"),
/* structName */ "TextureGpencilModifierData",
/* structSize */ sizeof(TextureGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("TextureMapping"),
/*structName*/ "TextureGpencilModifierData",
/*structSize*/ sizeof(TextureGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -206,25 +206,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Thick = {
/* name */ N_("Thickness"),
/* structName */ "ThickGpencilModifierData",
/* structSize */ sizeof(ThickGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Thickness"),
/*structName*/ "ThickGpencilModifierData",
/*structSize*/ sizeof(ThickGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -421,25 +421,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Time = {
/* name */ N_("TimeOffset"),
/* structName */ "TimeGpencilModifierData",
/* structSize */ sizeof(TimeGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_NoApply,
/*name*/ N_("TimeOffset"),
/*structName*/ "TimeGpencilModifierData",
/*structSize*/ sizeof(TimeGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_NoApply,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ NULL,
/* generateStrokes */ NULL,
/* bakeModifier */ NULL,
/* remapTime */ remapTime,
/*deformStroke*/ NULL,
/*generateStrokes*/ NULL,
/*bakeModifier*/ NULL,
/*remapTime*/ remapTime,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -367,25 +367,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_Tint = {
/* name */ N_("Tint"),
/* structName */ "TintGpencilModifierData",
/* structSize */ sizeof(TintGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ eGpencilModifierTypeFlag_SupportsEditmode,
/*name*/ N_("Tint"),
/*structName*/ "TintGpencilModifierData",
/*structSize*/ sizeof(TintGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ eGpencilModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ freeData,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ freeData,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -211,25 +211,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_WeightAngle = {
/* name */ N_("Vertex Weight Angle"),
/* structName */ "WeightAngleGpencilModifierData",
/* structSize */ sizeof(WeightAngleGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ 0,
/*name*/ N_("Vertex Weight Angle"),
/*structName*/ "WeightAngleGpencilModifierData",
/*structSize*/ sizeof(WeightAngleGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ 0,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -228,25 +228,25 @@ static void panelRegister(ARegionType *region_type)
}
GpencilModifierTypeInfo modifierType_Gpencil_WeightProximity = {
/* name */ N_("Vertex Weight Proximity"),
/* structName */ "WeightProxGpencilModifierData",
/* structSize */ sizeof(WeightProxGpencilModifierData),
/* type */ eGpencilModifierTypeType_Gpencil,
/* flags */ 0,
/*name*/ N_("Vertex Weight Proximity"),
/*structName*/ "WeightProxGpencilModifierData",
/*structSize*/ sizeof(WeightProxGpencilModifierData),
/*type*/ eGpencilModifierTypeType_Gpencil,
/*flags*/ 0,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformStroke */ deformStroke,
/* generateStrokes */ NULL,
/* bakeModifier */ bakeModifier,
/* remapTime */ NULL,
/*deformStroke*/ deformStroke,
/*generateStrokes*/ NULL,
/*bakeModifier*/ bakeModifier,
/*remapTime*/ NULL,
/* initData */ initData,
/* freeData */ NULL,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* panelRegister */ panelRegister,
/*initData*/ initData,
/*freeData*/ NULL,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*panelRegister*/ panelRegister,
};

View File

@ -987,7 +987,7 @@ static void rna_def_keyblock(BlenderRNA *brna)
RNA_def_function_ui_description(func,
"Compute local space vertices' normals for this shape key");
RNA_def_function_flag(func, FUNC_USE_SELF_ID);
parm = RNA_def_property(func, "normals", PROP_FLOAT, /* PROP_DIRECTION */ PROP_NONE);
parm = RNA_def_property(func, "normals", PROP_FLOAT, /*PROP_DIRECTION*/ PROP_NONE);
RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_OUTPUT);
RNA_def_property_multi_array(parm, 2, NULL);
RNA_def_property_range(parm, -1.0f, 1.0f);
@ -996,7 +996,7 @@ static void rna_def_keyblock(BlenderRNA *brna)
func = RNA_def_function(srna, "normals_polygon_get", "rna_KeyBlock_normals_poly_calc");
RNA_def_function_ui_description(func, "Compute local space faces' normals for this shape key");
RNA_def_function_flag(func, FUNC_USE_SELF_ID);
parm = RNA_def_property(func, "normals", PROP_FLOAT, /* PROP_DIRECTION */ PROP_NONE);
parm = RNA_def_property(func, "normals", PROP_FLOAT, /*PROP_DIRECTION*/ PROP_NONE);
RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_OUTPUT);
RNA_def_property_multi_array(parm, 2, NULL);
RNA_def_property_range(parm, -1.0f, 1.0f);
@ -1006,7 +1006,7 @@ static void rna_def_keyblock(BlenderRNA *brna)
RNA_def_function_ui_description(func,
"Compute local space face corners' normals for this shape key");
RNA_def_function_flag(func, FUNC_USE_SELF_ID);
parm = RNA_def_property(func, "normals", PROP_FLOAT, /* PROP_DIRECTION */ PROP_NONE);
parm = RNA_def_property(func, "normals", PROP_FLOAT, /*PROP_DIRECTION*/ PROP_NONE);
RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_OUTPUT);
RNA_def_property_multi_array(parm, 2, NULL);
RNA_def_property_range(parm, -1.0f, 1.0f);

View File

@ -260,35 +260,35 @@ static void blendRead(BlendDataReader *UNUSED(reader), ModifierData *md)
}
ModifierTypeInfo modifierType_Armature = {
/* name */ N_("Armature"),
/* structName */ "ArmatureModifierData",
/* structSize */ sizeof(ArmatureModifierData),
/* srna */ &RNA_ArmatureModifier,
/* type */ eModifierTypeType_OnlyDeform,
/* flags */ eModifierTypeFlag_AcceptsCVs | eModifierTypeFlag_AcceptsVertexCosOnly |
/*name*/ N_("Armature"),
/*structName*/ "ArmatureModifierData",
/*structSize*/ sizeof(ArmatureModifierData),
/*srna*/ &RNA_ArmatureModifier,
/*type*/ eModifierTypeType_OnlyDeform,
/*flags*/ eModifierTypeFlag_AcceptsCVs | eModifierTypeFlag_AcceptsVertexCosOnly |
eModifierTypeFlag_SupportsEditmode,
/* icon */ ICON_MOD_ARMATURE,
/*icon*/ ICON_MOD_ARMATURE,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformVerts */ deformVerts,
/* deformMatrices */ deformMatrices,
/* deformVertsEM */ deformVertsEM,
/* deformMatricesEM */ deformMatricesEM,
/* modifyMesh */ NULL,
/* modifyGeometrySet */ NULL,
/*deformVerts*/ deformVerts,
/*deformMatrices*/ deformMatrices,
/*deformVertsEM*/ deformVertsEM,
/*deformMatricesEM*/ deformMatricesEM,
/*modifyMesh*/ NULL,
/*modifyGeometrySet*/ NULL,
/* initData */ initData,
/* requiredDataMask */ requiredDataMask,
/* freeData */ NULL,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* dependsOnNormals */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* freeRuntimeData */ NULL,
/* panelRegister */ panelRegister,
/* blendWrite */ NULL,
/* blendRead */ blendRead,
/*initData*/ initData,
/*requiredDataMask*/ requiredDataMask,
/*freeData*/ NULL,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*dependsOnNormals*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*freeRuntimeData*/ NULL,
/*panelRegister*/ panelRegister,
/*blendWrite*/ NULL,
/*blendRead*/ blendRead,
};

View File

@ -1000,36 +1000,36 @@ static void panelRegister(ARegionType *region_type)
}
ModifierTypeInfo modifierType_Array = {
/* name */ N_("Array"),
/* structName */ "ArrayModifierData",
/* structSize */ sizeof(ArrayModifierData),
/* srna */ &RNA_ArrayModifier,
/* type */ eModifierTypeType_Constructive,
/* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsMapping |
/*name*/ N_("Array"),
/*structName*/ "ArrayModifierData",
/*structSize*/ sizeof(ArrayModifierData),
/*srna*/ &RNA_ArrayModifier,
/*type*/ eModifierTypeType_Constructive,
/*flags*/ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsMapping |
eModifierTypeFlag_SupportsEditmode | eModifierTypeFlag_EnableInEditmode |
eModifierTypeFlag_AcceptsCVs,
/* icon */ ICON_MOD_ARRAY,
/*icon*/ ICON_MOD_ARRAY,
/* copyData */ BKE_modifier_copydata_generic,
/*copyData*/ BKE_modifier_copydata_generic,
/* deformVerts */ nullptr,
/* deformMatrices */ nullptr,
/* deformVertsEM */ nullptr,
/* deformMatricesEM */ nullptr,
/* modifyMesh */ modifyMesh,
/* modifyGeometrySet */ nullptr,
/*deformVerts*/ nullptr,
/*deformMatrices*/ nullptr,
/*deformVertsEM*/ nullptr,
/*deformMatricesEM*/ nullptr,
/*modifyMesh*/ modifyMesh,
/*modifyGeometrySet*/ nullptr,
/* initData */ initData,
/* requiredDataMask */ nullptr,
/* freeData */ nullptr,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ nullptr,
/* dependsOnNormals */ nullptr,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ nullptr,
/* freeRuntimeData */ nullptr,
/* panelRegister */ panelRegister,
/* blendWrite */ nullptr,
/* blendRead */ nullptr,
/*initData*/ initData,
/*requiredDataMask*/ nullptr,
/*freeData*/ nullptr,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ nullptr,
/*dependsOnNormals*/ nullptr,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ nullptr,
/*freeRuntimeData*/ nullptr,
/*panelRegister*/ panelRegister,
/*blendWrite*/ nullptr,
/*blendRead*/ nullptr,
};

View File

@ -419,32 +419,32 @@ static void blendRead(BlendDataReader *reader, ModifierData *md)
}
ModifierTypeInfo modifierType_Bevel = {
/* name */ N_("Bevel"),
/* structName */ "BevelModifierData",
/* structSize */ sizeof(BevelModifierData),
/* srna */ &RNA_BevelModifier,
/* type */ eModifierTypeType_Constructive,
/* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsEditmode |
/*name*/ N_("Bevel"),
/*structName*/ "BevelModifierData",
/*structSize*/ sizeof(BevelModifierData),
/*srna*/ &RNA_BevelModifier,
/*type*/ eModifierTypeType_Constructive,
/*flags*/ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsEditmode |
eModifierTypeFlag_EnableInEditmode | eModifierTypeFlag_AcceptsCVs,
/* icon */ ICON_MOD_BEVEL,
/* copyData */ copyData,
/* deformVerts */ NULL,
/* deformMatrices */ NULL,
/* deformVertsEM */ NULL,
/* deformMatricesEM */ NULL,
/* modifyMesh */ modifyMesh,
/* modifyGeometrySet */ NULL,
/* initData */ initData,
/* requiredDataMask */ requiredDataMask,
/* freeData */ freeData,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* dependsOnNormals */ dependsOnNormals,
/* foreachIDLink */ NULL,
/* foreachTexLink */ NULL,
/* freeRuntimeData */ NULL,
/* uiPanel */ panelRegister,
/* blendWrite */ blendWrite,
/* blendRead */ blendRead,
/*icon*/ ICON_MOD_BEVEL,
/*copyData*/ copyData,
/*deformVerts*/ NULL,
/*deformMatrices*/ NULL,
/*deformVertsEM*/ NULL,
/*deformMatricesEM*/ NULL,
/*modifyMesh*/ modifyMesh,
/*modifyGeometrySet*/ NULL,
/*initData*/ initData,
/*requiredDataMask*/ requiredDataMask,
/*freeData*/ freeData,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*dependsOnNormals*/ dependsOnNormals,
/*foreachIDLink*/ NULL,
/*foreachTexLink*/ NULL,
/*freeRuntimeData*/ NULL,
/*uiPanel*/ panelRegister,
/*blendWrite*/ blendWrite,
/*blendRead*/ blendRead,
};

View File

@ -664,35 +664,35 @@ static void panelRegister(ARegionType *region_type)
}
ModifierTypeInfo modifierType_Boolean = {
/* name */ N_("Boolean"),
/* structName */ "BooleanModifierData",
/* structSize */ sizeof(BooleanModifierData),
/* srna */ &RNA_BooleanModifier,
/* type */ eModifierTypeType_Nonconstructive,
/* flags */
/*name*/ N_("Boolean"),
/*structName*/ "BooleanModifierData",
/*structSize*/ sizeof(BooleanModifierData),
/*srna*/ &RNA_BooleanModifier,
/*type*/ eModifierTypeType_Nonconstructive,
/*flags*/
(ModifierTypeFlag)(eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsEditmode),
/* icon */ ICON_MOD_BOOLEAN,
/*icon*/ ICON_MOD_BOOLEAN,
/* copyData */ BKE_modifier_copydata_generic,
/*copyData*/ BKE_modifier_copydata_generic,
/* deformVerts */ nullptr,
/* deformMatrices */ nullptr,
/* deformVertsEM */ nullptr,
/* deformMatricesEM */ nullptr,
/* modifyMesh */ modifyMesh,
/* modifyGeometrySet */ nullptr,
/*deformVerts*/ nullptr,
/*deformMatrices*/ nullptr,
/*deformVertsEM*/ nullptr,
/*deformMatricesEM*/ nullptr,
/*modifyMesh*/ modifyMesh,
/*modifyGeometrySet*/ nullptr,
/* initData */ initData,
/* requiredDataMask */ requiredDataMask,
/* freeData */ nullptr,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ nullptr,
/* dependsOnNormals */ nullptr,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ nullptr,
/* freeRuntimeData */ nullptr,
/* panelRegister */ panelRegister,
/* blendWrite */ nullptr,
/* blendRead */ nullptr,
/*initData*/ initData,
/*requiredDataMask*/ requiredDataMask,
/*freeData*/ nullptr,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ nullptr,
/*dependsOnNormals*/ nullptr,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ nullptr,
/*freeRuntimeData*/ nullptr,
/*panelRegister*/ panelRegister,
/*blendWrite*/ nullptr,
/*blendRead*/ nullptr,
};

View File

@ -309,34 +309,34 @@ static void panelRegister(ARegionType *region_type)
}
ModifierTypeInfo modifierType_Build = {
/* name */ N_("Build"),
/* structName */ "BuildModifierData",
/* structSize */ sizeof(BuildModifierData),
/* srna */ &RNA_BuildModifier,
/* type */ eModifierTypeType_Nonconstructive,
/* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_AcceptsCVs,
/* icon */ ICON_MOD_BUILD,
/*name*/ N_("Build"),
/*structName*/ "BuildModifierData",
/*structSize*/ sizeof(BuildModifierData),
/*srna*/ &RNA_BuildModifier,
/*type*/ eModifierTypeType_Nonconstructive,
/*flags*/ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_AcceptsCVs,
/*icon*/ ICON_MOD_BUILD,
/* copyData */ BKE_modifier_copydata_generic,
/*copyData*/ BKE_modifier_copydata_generic,
/* deformVerts */ NULL,
/* deformMatrices */ NULL,
/* deformVertsEM */ NULL,
/* deformMatricesEM */ NULL,
/* modifyMesh */ modifyMesh,
/* modifyGeometrySet */ NULL,
/*deformVerts*/ NULL,
/*deformMatrices*/ NULL,
/*deformVertsEM*/ NULL,
/*deformMatricesEM*/ NULL,
/*modifyMesh*/ modifyMesh,
/*modifyGeometrySet*/ NULL,
/* initData */ initData,
/* requiredDataMask */ NULL,
/* freeData */ NULL,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ dependsOnTime,
/* dependsOnNormals */ NULL,
/* foreachIDLink */ NULL,
/* foreachTexLink */ NULL,
/* freeRuntimeData */ NULL,
/* panelRegister */ panelRegister,
/* blendWrite */ NULL,
/* blendRead */ NULL,
/*initData*/ initData,
/*requiredDataMask*/ NULL,
/*freeData*/ NULL,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ dependsOnTime,
/*dependsOnNormals*/ NULL,
/*foreachIDLink*/ NULL,
/*foreachTexLink*/ NULL,
/*freeRuntimeData*/ NULL,
/*panelRegister*/ panelRegister,
/*blendWrite*/ NULL,
/*blendRead*/ NULL,
};

View File

@ -557,35 +557,35 @@ static void panelRegister(ARegionType *region_type)
}
ModifierTypeInfo modifierType_Cast = {
/* name */ N_("Cast"),
/* structName */ "CastModifierData",
/* structSize */ sizeof(CastModifierData),
/* srna */ &RNA_CastModifier,
/* type */ eModifierTypeType_OnlyDeform,
/* flags */ eModifierTypeFlag_AcceptsCVs | eModifierTypeFlag_AcceptsVertexCosOnly |
/*name*/ N_("Cast"),
/*structName*/ "CastModifierData",
/*structSize*/ sizeof(CastModifierData),
/*srna*/ &RNA_CastModifier,
/*type*/ eModifierTypeType_OnlyDeform,
/*flags*/ eModifierTypeFlag_AcceptsCVs | eModifierTypeFlag_AcceptsVertexCosOnly |
eModifierTypeFlag_SupportsEditmode,
/* icon */ ICON_MOD_CAST,
/*icon*/ ICON_MOD_CAST,
/* copyData */ BKE_modifier_copydata_generic,
/*copyData*/ BKE_modifier_copydata_generic,
/* deformVerts */ deformVerts,
/* deformMatrices */ NULL,
/* deformVertsEM */ deformVertsEM,
/* deformMatricesEM */ NULL,
/* modifyMesh */ NULL,
/* modifyGeometrySet */ NULL,
/*deformVerts*/ deformVerts,
/*deformMatrices*/ NULL,
/*deformVertsEM*/ deformVertsEM,
/*deformMatricesEM*/ NULL,
/*modifyMesh*/ NULL,
/*modifyGeometrySet*/ NULL,
/* initData */ initData,
/* requiredDataMask */ requiredDataMask,
/* freeData */ NULL,
/* isDisabled */ isDisabled,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ NULL,
/* dependsOnNormals */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* freeRuntimeData */ NULL,
/* panelRegister */ panelRegister,
/* blendWrite */ NULL,
/* blendRead */ NULL,
/*initData*/ initData,
/*requiredDataMask*/ requiredDataMask,
/*freeData*/ NULL,
/*isDisabled*/ isDisabled,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ NULL,
/*dependsOnNormals*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*freeRuntimeData*/ NULL,
/*panelRegister*/ panelRegister,
/*blendWrite*/ NULL,
/*blendRead*/ NULL,
};

View File

@ -274,35 +274,35 @@ static void panelRegister(ARegionType *region_type)
}
ModifierTypeInfo modifierType_Cloth = {
/* name */ N_("Cloth"),
/* structName */ "ClothModifierData",
/* structSize */ sizeof(ClothModifierData),
/* srna */ &RNA_ClothModifier,
/* type */ eModifierTypeType_OnlyDeform,
/* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_UsesPointCache |
/*name*/ N_("Cloth"),
/*structName*/ "ClothModifierData",
/*structSize*/ sizeof(ClothModifierData),
/*srna*/ &RNA_ClothModifier,
/*type*/ eModifierTypeType_OnlyDeform,
/*flags*/ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_UsesPointCache |
eModifierTypeFlag_Single,
/* icon */ ICON_MOD_CLOTH,
/*icon*/ ICON_MOD_CLOTH,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformVerts */ deformVerts,
/* deformMatrices */ NULL,
/* deformVertsEM */ NULL,
/* deformMatricesEM */ NULL,
/* modifyMesh */ NULL,
/* modifyGeometrySet */ NULL,
/*deformVerts*/ deformVerts,
/*deformMatrices*/ NULL,
/*deformVertsEM*/ NULL,
/*deformMatricesEM*/ NULL,
/*modifyMesh*/ NULL,
/*modifyGeometrySet*/ NULL,
/* initData */ initData,
/* requiredDataMask */ requiredDataMask,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ dependsOnTime,
/* dependsOnNormals */ NULL,
/* foreachIDLink */ foreachIDLink,
/* foreachTexLink */ NULL,
/* freeRuntimeData */ NULL,
/* panelRegister */ panelRegister,
/* blendWrite */ NULL,
/* blendRead */ NULL,
/*initData*/ initData,
/*requiredDataMask*/ requiredDataMask,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ dependsOnTime,
/*dependsOnNormals*/ NULL,
/*foreachIDLink*/ foreachIDLink,
/*foreachTexLink*/ NULL,
/*freeRuntimeData*/ NULL,
/*panelRegister*/ panelRegister,
/*blendWrite*/ NULL,
/*blendRead*/ NULL,
};

View File

@ -283,34 +283,34 @@ static void blendRead(BlendDataReader *UNUSED(reader), ModifierData *md)
}
ModifierTypeInfo modifierType_Collision = {
/* name */ N_("Collision"),
/* structName */ "CollisionModifierData",
/* structSize */ sizeof(CollisionModifierData),
/* srna */ &RNA_CollisionModifier,
/* type */ eModifierTypeType_OnlyDeform,
/* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_Single,
/* icon */ ICON_MOD_PHYSICS,
/*name*/ N_("Collision"),
/*structName*/ "CollisionModifierData",
/*structSize*/ sizeof(CollisionModifierData),
/*srna*/ &RNA_CollisionModifier,
/*type*/ eModifierTypeType_OnlyDeform,
/*flags*/ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_Single,
/*icon*/ ICON_MOD_PHYSICS,
/* copyData */ NULL,
/*copyData*/ NULL,
/* deformVerts */ deformVerts,
/* deformMatrices */ NULL,
/* deformVertsEM */ NULL,
/* deformMatricesEM */ NULL,
/* modifyMesh */ NULL,
/* modifyGeometrySet */ NULL,
/*deformVerts*/ deformVerts,
/*deformMatrices*/ NULL,
/*deformVertsEM*/ NULL,
/*deformMatricesEM*/ NULL,
/*modifyMesh*/ NULL,
/*modifyGeometrySet*/ NULL,
/* initData */ initData,
/* requiredDataMask */ NULL,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ updateDepsgraph,
/* dependsOnTime */ dependsOnTime,
/* dependsOnNormals */ NULL,
/* foreachIDLink */ NULL,
/* foreachTexLink */ NULL,
/* freeRuntimeData */ NULL,
/* panelRegister */ panelRegister,
/* blendWrite */ NULL,
/* blendRead */ blendRead,
/*initData*/ initData,
/*requiredDataMask*/ NULL,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ updateDepsgraph,
/*dependsOnTime*/ dependsOnTime,
/*dependsOnNormals*/ NULL,
/*foreachIDLink*/ NULL,
/*foreachTexLink*/ NULL,
/*freeRuntimeData*/ NULL,
/*panelRegister*/ panelRegister,
/*blendWrite*/ NULL,
/*blendRead*/ blendRead,
};

View File

@ -842,34 +842,34 @@ static void blendRead(BlendDataReader *reader, ModifierData *md)
}
ModifierTypeInfo modifierType_CorrectiveSmooth = {
/* name */ N_("CorrectiveSmooth"),
/* structName */ "CorrectiveSmoothModifierData",
/* structSize */ sizeof(CorrectiveSmoothModifierData),
/* srna */ &RNA_CorrectiveSmoothModifier,
/* type */ eModifierTypeType_OnlyDeform,
/* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsEditmode,
/* icon */ ICON_MOD_SMOOTH,
/*name*/ N_("CorrectiveSmooth"),
/*structName*/ "CorrectiveSmoothModifierData",
/*structSize*/ sizeof(CorrectiveSmoothModifierData),
/*srna*/ &RNA_CorrectiveSmoothModifier,
/*type*/ eModifierTypeType_OnlyDeform,
/*flags*/ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsEditmode,
/*icon*/ ICON_MOD_SMOOTH,
/* copyData */ copyData,
/*copyData*/ copyData,
/* deformVerts */ deformVerts,
/* deformMatrices */ NULL,
/* deformVertsEM */ deformVertsEM,
/* deformMatricesEM */ NULL,
/* modifyMesh */ NULL,
/* modifyGeometrySet */ NULL,
/*deformVerts*/ deformVerts,
/*deformMatrices*/ NULL,
/*deformVertsEM*/ deformVertsEM,
/*deformMatricesEM*/ NULL,
/*modifyMesh*/ NULL,
/*modifyGeometrySet*/ NULL,
/* initData */ initData,
/* requiredDataMask */ requiredDataMask,
/* freeData */ freeData,
/* isDisabled */ NULL,
/* updateDepsgraph */ NULL,
/* dependsOnTime */ NULL,
/* dependsOnNormals */ NULL,
/* foreachIDLink */ NULL,
/* foreachTexLink */ NULL,
/* freeRuntimeData */ NULL,
/* panelRegister */ panelRegister,
/* blendWrite */ blendWrite,
/* blendRead */ blendRead,
/*initData*/ initData,
/*requiredDataMask*/ requiredDataMask,
/*freeData*/ freeData,
/*isDisabled*/ NULL,
/*updateDepsgraph*/ NULL,
/*dependsOnTime*/ NULL,
/*dependsOnNormals*/ NULL,
/*foreachIDLink*/ NULL,
/*foreachTexLink*/ NULL,
/*freeRuntimeData*/ NULL,
/*panelRegister*/ panelRegister,
/*blendWrite*/ blendWrite,
/*blendRead*/ blendRead,
};

Some files were not shown because too many files have changed in this diff Show More