Cleanup: spelling, rename metas to meta-strips / meta-balls
This commit is contained in:
@@ -50,7 +50,7 @@ enum PackFlags : uint32_t {
|
|||||||
/* Pack the geometry information (e.g. triangle or curve keys indices). */
|
/* Pack the geometry information (e.g. triangle or curve keys indices). */
|
||||||
PACK_GEOMETRY = (1u << 0),
|
PACK_GEOMETRY = (1u << 0),
|
||||||
|
|
||||||
/* Pack the vertice, for Meshes and Volumes' bouding meshes. */
|
/* Pack the vertices, for Meshes and Volumes' bounding meshes. */
|
||||||
PACK_VERTICES = (1u << 1),
|
PACK_VERTICES = (1u << 1),
|
||||||
|
|
||||||
/* Pack the visibility flags for each triangle or curve. */
|
/* Pack the visibility flags for each triangle or curve. */
|
||||||
|
|||||||
@@ -947,7 +947,7 @@ static bool nlastrips_path_rename_fix(ID *owner_id,
|
|||||||
owner_id, prefix, oldName, newName, oldKey, newKey, &strip->act->curves, verify_paths);
|
owner_id, prefix, oldName, newName, oldKey, newKey, &strip->act->curves, verify_paths);
|
||||||
}
|
}
|
||||||
/* Ignore own F-Curves, since those are local. */
|
/* Ignore own F-Curves, since those are local. */
|
||||||
/* Check sub-strips (if metas) */
|
/* Check sub-strips (if meta-strips). */
|
||||||
is_changed |= nlastrips_path_rename_fix(
|
is_changed |= nlastrips_path_rename_fix(
|
||||||
owner_id, prefix, oldName, newName, oldKey, newKey, &strip->strips, verify_paths);
|
owner_id, prefix, oldName, newName, oldKey, newKey, &strip->strips, verify_paths);
|
||||||
}
|
}
|
||||||
@@ -1177,7 +1177,7 @@ static bool nlastrips_path_remove_fix(const char *prefix, ListBase *strips)
|
|||||||
any_removed |= fcurves_path_remove_fix(prefix, &strip->act->curves);
|
any_removed |= fcurves_path_remove_fix(prefix, &strip->act->curves);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check sub-strips (if metas) */
|
/* Check sub-strips (if meta-strips). */
|
||||||
any_removed |= nlastrips_path_remove_fix(prefix, &strip->strips);
|
any_removed |= nlastrips_path_remove_fix(prefix, &strip->strips);
|
||||||
}
|
}
|
||||||
return any_removed;
|
return any_removed;
|
||||||
@@ -1245,7 +1245,7 @@ static void nlastrips_apply_all_curves_cb(ID *id, ListBase *strips, AllFCurvesCb
|
|||||||
fcurves_apply_cb(id, &strip->act->curves, wrapper->func, wrapper->user_data);
|
fcurves_apply_cb(id, &strip->act->curves, wrapper->func, wrapper->user_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check sub-strips (if metas) */
|
/* Check sub-strips (if meta-strips). */
|
||||||
nlastrips_apply_all_curves_cb(id, &strip->strips, wrapper);
|
nlastrips_apply_all_curves_cb(id, &strip->strips, wrapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1794,7 +1794,7 @@ static void nlaevalchan_combine_quaternion(NlaEvalChannelSnapshot *lower_necs,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Based on blendmode and mixmode, blend lower necs with upper necs into blended necs.
|
* Based on blend-mode and mix-mode, blend lower necs with upper necs into blended necs.
|
||||||
*
|
*
|
||||||
* Each upper value's blend domain determines whether to blend or to copy directly
|
* Each upper value's blend domain determines whether to blend or to copy directly
|
||||||
* from lower.
|
* from lower.
|
||||||
@@ -1879,7 +1879,7 @@ static void nlaevalchan_blend_value_get_inverted_upper_evalchan(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Based on mixmode, solve for the upper values such that when lower combined with upper then we
|
* Based on mix-mode, solve for the upper values such that when lower combined with upper then we
|
||||||
* get blended values as a result.
|
* get blended values as a result.
|
||||||
*
|
*
|
||||||
* Only processes blended values in the remap domain. Successfully remapped upper values are placed
|
* Only processes blended values in the remap domain. Successfully remapped upper values are placed
|
||||||
@@ -2407,12 +2407,12 @@ static void nla_eval_domain_strips(PointerRNA *ptr,
|
|||||||
GSet *touched_actions)
|
GSet *touched_actions)
|
||||||
{
|
{
|
||||||
LISTBASE_FOREACH (NlaStrip *, strip, strips) {
|
LISTBASE_FOREACH (NlaStrip *, strip, strips) {
|
||||||
/* check strip's action */
|
/* Check strip's action. */
|
||||||
if (strip->act) {
|
if (strip->act) {
|
||||||
nla_eval_domain_action(ptr, channels, strip->act, touched_actions);
|
nla_eval_domain_action(ptr, channels, strip->act, touched_actions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check sub-strips (if metas) */
|
/* Check sub-strips (if meta-strips). */
|
||||||
nla_eval_domain_strips(ptr, channels, &strip->strips, touched_actions);
|
nla_eval_domain_strips(ptr, channels, &strip->strips, touched_actions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2859,9 +2859,9 @@ void nlasnapshot_ensure_channels(NlaEvalData *eval_data, NlaEvalSnapshot *snapsh
|
|||||||
* Blends the \a lower_snapshot with the \a upper_snapshot into \a r_blended_snapshot according
|
* Blends the \a lower_snapshot with the \a upper_snapshot into \a r_blended_snapshot according
|
||||||
* to the given \a upper_blendmode and \a upper_influence.
|
* to the given \a upper_blendmode and \a upper_influence.
|
||||||
*
|
*
|
||||||
* For \a upper_snapshot, blending limited to values in the \a blend_domain. For Replace blendmode,
|
* For \a upper_snapshot, blending limited to values in the \a blend_domain.
|
||||||
* this allows the upper snapshot to have a location XYZ channel where only a subset of values are
|
* For Replace blend-mode, this allows the upper snapshot to have a location XYZ channel
|
||||||
* blended.
|
* where only a subset of values are blended.
|
||||||
*/
|
*/
|
||||||
void nlasnapshot_blend(NlaEvalData *eval_data,
|
void nlasnapshot_blend(NlaEvalData *eval_data,
|
||||||
NlaEvalSnapshot *lower_snapshot,
|
NlaEvalSnapshot *lower_snapshot,
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ static void make_box_from_metaelem(Box *r, const MetaElem *ml)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Partitions part of mainb array [start, end) along axis s. Returns i,
|
* Partitions part of #process.mainb array [start, end) along axis s. Returns i,
|
||||||
* where centroids of elements in the [start, i) segment lie "on the right side" of div,
|
* where centroids of elements in the [start, i) segment lie "on the right side" of div,
|
||||||
* and elements in the [i, end) segment lie "on the left"
|
* and elements in the [i, end) segment lie "on the left"
|
||||||
*/
|
*/
|
||||||
@@ -1170,8 +1170,9 @@ static void polygonize(PROCESS *process)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Iterates over ALL objects in the scene and all of its sets, including
|
* Iterates over ALL objects in the scene and all of its sets, including
|
||||||
* making all duplis(not only metas). Copies metas to mainb array.
|
* making all duplis (not only meta-elements). Copies meta-elements to #process.mainb array.
|
||||||
* Computes bounding boxes for building BVH. */
|
* Computes bounding boxes for building BVH.
|
||||||
|
*/
|
||||||
static void init_meta(Depsgraph *depsgraph, PROCESS *process, Scene *scene, Object *ob)
|
static void init_meta(Depsgraph *depsgraph, PROCESS *process, Scene *scene, Object *ob)
|
||||||
{
|
{
|
||||||
Scene *sce_iter = scene;
|
Scene *sce_iter = scene;
|
||||||
|
|||||||
@@ -801,7 +801,7 @@ bool ED_object_parent_set(ReportList *reports,
|
|||||||
* so we check this by assuming that the parent is selected too.
|
* so we check this by assuming that the parent is selected too.
|
||||||
*/
|
*/
|
||||||
/* XXX currently this should only happen for meshes, curves, surfaces,
|
/* XXX currently this should only happen for meshes, curves, surfaces,
|
||||||
* and lattices - this stuff isn't available for metas yet */
|
* and lattices - this stuff isn't available for meta-balls yet. */
|
||||||
if (ELEM(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT, OB_LATTICE)) {
|
if (ELEM(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT, OB_LATTICE)) {
|
||||||
ModifierData *md;
|
ModifierData *md;
|
||||||
|
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ static void nla_strip_get_color_inside(AnimData *adt, NlaStrip *strip, float col
|
|||||||
}
|
}
|
||||||
else if (strip->type == NLASTRIP_TYPE_META) {
|
else if (strip->type == NLASTRIP_TYPE_META) {
|
||||||
/* Meta Clip */
|
/* Meta Clip */
|
||||||
/* TODO: should temporary metas get different colors too? */
|
/* TODO: should temporary meta-strips get different colors too? */
|
||||||
if (strip->flag & NLASTRIP_FLAG_SELECT) {
|
if (strip->flag & NLASTRIP_FLAG_SELECT) {
|
||||||
/* selected - use a bold purple color */
|
/* selected - use a bold purple color */
|
||||||
UI_GetThemeColor3fv(TH_NLA_META_SEL, color);
|
UI_GetThemeColor3fv(TH_NLA_META_SEL, color);
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ static int sequencer_snap_exec(bContext *C, wmOperator *op)
|
|||||||
|
|
||||||
snap_frame = RNA_int_get(op->ptr, "frame");
|
snap_frame = RNA_int_get(op->ptr, "frame");
|
||||||
|
|
||||||
/* Check metas. */
|
/* Check meta-strips. */
|
||||||
for (seq = ed->seqbasep->first; seq; seq = seq->next) {
|
for (seq = ed->seqbasep->first; seq; seq = seq->next) {
|
||||||
if (seq->flag & SELECT && !(seq->depth == 0 && seq->flag & SEQ_LOCK) &&
|
if (seq->flag & SELECT && !(seq->depth == 0 && seq->flag & SEQ_LOCK) &&
|
||||||
SEQ_transform_sequence_can_be_translated(seq)) {
|
SEQ_transform_sequence_can_be_translated(seq)) {
|
||||||
@@ -1867,13 +1867,13 @@ static int sequencer_meta_toggle_exec(bContext *C, wmOperator *UNUSED(op))
|
|||||||
Sequence *active_seq = SEQ_select_active_get(scene);
|
Sequence *active_seq = SEQ_select_active_get(scene);
|
||||||
|
|
||||||
if (active_seq && active_seq->type == SEQ_TYPE_META && active_seq->flag & SELECT) {
|
if (active_seq && active_seq->type == SEQ_TYPE_META && active_seq->flag & SELECT) {
|
||||||
/* Enter metastrip. */
|
/* Enter meta-strip. */
|
||||||
SEQ_meta_stack_alloc(ed, active_seq);
|
SEQ_meta_stack_alloc(ed, active_seq);
|
||||||
SEQ_seqbase_active_set(ed, &active_seq->seqbase);
|
SEQ_seqbase_active_set(ed, &active_seq->seqbase);
|
||||||
SEQ_select_active_set(scene, NULL);
|
SEQ_select_active_set(scene, NULL);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Exit metastrip if possible. */
|
/* Exit meta-strip if possible. */
|
||||||
if (BLI_listbase_is_empty(&ed->metastack)) {
|
if (BLI_listbase_is_empty(&ed->metastack)) {
|
||||||
return OPERATOR_CANCELLED;
|
return OPERATOR_CANCELLED;
|
||||||
}
|
}
|
||||||
@@ -1895,7 +1895,7 @@ void SEQUENCER_OT_meta_toggle(wmOperatorType *ot)
|
|||||||
/* Identifiers. */
|
/* Identifiers. */
|
||||||
ot->name = "Toggle Meta Strip";
|
ot->name = "Toggle Meta Strip";
|
||||||
ot->idname = "SEQUENCER_OT_meta_toggle";
|
ot->idname = "SEQUENCER_OT_meta_toggle";
|
||||||
ot->description = "Toggle a metastrip (to edit enclosed strips)";
|
ot->description = "Toggle a meta-strip (to edit enclosed strips)";
|
||||||
|
|
||||||
/* Api callbacks. */
|
/* Api callbacks. */
|
||||||
ot->exec = sequencer_meta_toggle_exec;
|
ot->exec = sequencer_meta_toggle_exec;
|
||||||
@@ -1963,7 +1963,7 @@ void SEQUENCER_OT_meta_make(wmOperatorType *ot)
|
|||||||
/* Identifiers. */
|
/* Identifiers. */
|
||||||
ot->name = "Make Meta Strip";
|
ot->name = "Make Meta Strip";
|
||||||
ot->idname = "SEQUENCER_OT_meta_make";
|
ot->idname = "SEQUENCER_OT_meta_make";
|
||||||
ot->description = "Group selected strips into a metastrip";
|
ot->description = "Group selected strips into a meta-strip";
|
||||||
|
|
||||||
/* Api callbacks. */
|
/* Api callbacks. */
|
||||||
ot->exec = sequencer_meta_make_exec;
|
ot->exec = sequencer_meta_make_exec;
|
||||||
@@ -2026,7 +2026,7 @@ void SEQUENCER_OT_meta_separate(wmOperatorType *ot)
|
|||||||
/* Identifiers. */
|
/* Identifiers. */
|
||||||
ot->name = "UnMeta Strip";
|
ot->name = "UnMeta Strip";
|
||||||
ot->idname = "SEQUENCER_OT_meta_separate";
|
ot->idname = "SEQUENCER_OT_meta_separate";
|
||||||
ot->description = "Put the contents of a metastrip back in the sequencer";
|
ot->description = "Put the contents of a meta-strip back in the sequencer";
|
||||||
|
|
||||||
/* Api callbacks. */
|
/* Api callbacks. */
|
||||||
ot->exec = sequencer_meta_separate_exec;
|
ot->exec = sequencer_meta_separate_exec;
|
||||||
|
|||||||
@@ -707,7 +707,7 @@ static void flushTransSeq(TransInfo *t)
|
|||||||
|
|
||||||
/* originally TFM_TIME_EXTEND, transform changes */
|
/* originally TFM_TIME_EXTEND, transform changes */
|
||||||
if (ELEM(t->mode, TFM_SEQ_SLIDE, TFM_TIME_TRANSLATE)) {
|
if (ELEM(t->mode, TFM_SEQ_SLIDE, TFM_TIME_TRANSLATE)) {
|
||||||
/* Special annoying case here, need to calc metas with TFM_TIME_EXTEND only */
|
/* Special annoying case here, need to calc meta-strips with TFM_TIME_EXTEND only */
|
||||||
|
|
||||||
/* calc all meta's then effects T27953. */
|
/* calc all meta's then effects T27953. */
|
||||||
for (seq = seqbasep->first; seq; seq = seq->next) {
|
for (seq = seqbasep->first; seq; seq = seq->next) {
|
||||||
|
|||||||
@@ -1273,7 +1273,7 @@ void transform_mode_init(TransInfo *t, wmOperator *op, const int mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When in modal nad not set, initializes a default orientation for the mode.
|
* When in modal and not set, initializes a default orientation for the mode.
|
||||||
*/
|
*/
|
||||||
void transform_mode_default_modal_orientation_set(TransInfo *t, int type)
|
void transform_mode_default_modal_orientation_set(TransInfo *t, int type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -521,7 +521,7 @@ enum {
|
|||||||
SEQ_SCENE_NO_GPENCIL = (1 << 28),
|
SEQ_SCENE_NO_GPENCIL = (1 << 28),
|
||||||
SEQ_USE_VIEWS = (1 << 29),
|
SEQ_USE_VIEWS = (1 << 29),
|
||||||
|
|
||||||
/* access scene strips directly (like a metastrip) */
|
/* Access scene strips directly (like a meta-strip). */
|
||||||
SEQ_SCENE_STRIPS = (1 << 30),
|
SEQ_SCENE_STRIPS = (1 << 30),
|
||||||
|
|
||||||
SEQ_INVALID_EFFECT = (1u << 31),
|
SEQ_INVALID_EFFECT = (1u << 31),
|
||||||
|
|||||||
@@ -3033,10 +3033,9 @@ static ImBuf *do_adjustment_impl(const SeqRenderData *context, Sequence *seq, fl
|
|||||||
i = seq_render_give_ibuf_seqbase(context, timeline_frame, seq->machine - 1, seqbasep);
|
i = seq_render_give_ibuf_seqbase(context, timeline_frame, seq->machine - 1, seqbasep);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* found nothing? so let's work the way up the metastrip stack, so
|
/* Found nothing? so let's work the way up the meta-strip stack, so
|
||||||
* that it is possible to group a bunch of adjustment strips into
|
* that it is possible to group a bunch of adjustment strips into
|
||||||
* a metastrip and have that work on everything below the metastrip
|
* a meta-strip and have that work on everything below the meta-strip. */
|
||||||
*/
|
|
||||||
|
|
||||||
if (!i) {
|
if (!i) {
|
||||||
Sequence *meta;
|
Sequence *meta;
|
||||||
|
|||||||
@@ -448,8 +448,8 @@ static Sequence *seq_dupli(const Scene *scene_src,
|
|||||||
seqn->strip->stripdata = NULL;
|
seqn->strip->stripdata = NULL;
|
||||||
|
|
||||||
BLI_listbase_clear(&seqn->seqbase);
|
BLI_listbase_clear(&seqn->seqbase);
|
||||||
/* WATCH OUT!!! - This metastrip is not recursively duplicated here - do this after!!! */
|
/* WARNING: This meta-strip is not recursively duplicated here - do this after! */
|
||||||
/* - seq_dupli_recursive(&seq->seqbase, &seqn->seqbase);*/
|
// seq_dupli_recursive(&seq->seqbase, &seqn->seqbase);
|
||||||
}
|
}
|
||||||
else if (seq->type == SEQ_TYPE_SCENE) {
|
else if (seq->type == SEQ_TYPE_SCENE) {
|
||||||
seqn->strip->stripdata = NULL;
|
seqn->strip->stripdata = NULL;
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ void SEQ_edit_update_muting(Editing *ed)
|
|||||||
static void sequencer_flag_users_for_removal(Scene *scene, ListBase *seqbase, Sequence *seq)
|
static void sequencer_flag_users_for_removal(Scene *scene, ListBase *seqbase, Sequence *seq)
|
||||||
{
|
{
|
||||||
LISTBASE_FOREACH (Sequence *, user_seq, seqbase) {
|
LISTBASE_FOREACH (Sequence *, user_seq, seqbase) {
|
||||||
/* Look in metas for usage of seq. */
|
/* Look in meta-strips for usage of seq. */
|
||||||
if (user_seq->type == SEQ_TYPE_META) {
|
if (user_seq->type == SEQ_TYPE_META) {
|
||||||
sequencer_flag_users_for_removal(scene, &user_seq->seqbase, seq);
|
sequencer_flag_users_for_removal(scene, &user_seq->seqbase, seq);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ static void seq_time_update_meta_strip_range(Scene *scene, Sequence *seq_meta)
|
|||||||
{
|
{
|
||||||
seq_time_update_meta_strip(scene, seq_meta);
|
seq_time_update_meta_strip(scene, seq_meta);
|
||||||
|
|
||||||
/* Prevent metastrip to move in timeline. */
|
/* Prevent meta-strip to move in timeline. */
|
||||||
SEQ_transform_set_left_handle_frame(seq_meta, seq_meta->startdisp);
|
SEQ_transform_set_left_handle_frame(seq_meta, seq_meta->startdisp);
|
||||||
SEQ_transform_set_right_handle_frame(seq_meta, seq_meta->enddisp);
|
SEQ_transform_set_right_handle_frame(seq_meta, seq_meta->enddisp);
|
||||||
}
|
}
|
||||||
@@ -196,7 +196,7 @@ void SEQ_time_update_sequence(Scene *scene, Sequence *seq)
|
|||||||
{
|
{
|
||||||
Sequence *seqm;
|
Sequence *seqm;
|
||||||
|
|
||||||
/* check all metas recursively */
|
/* Check all meta-strips recursively. */
|
||||||
seqm = seq->seqbase.first;
|
seqm = seq->seqbase.first;
|
||||||
while (seqm) {
|
while (seqm) {
|
||||||
if (seqm->seqbase.first) {
|
if (seqm->seqbase.first) {
|
||||||
|
|||||||
Reference in New Issue
Block a user