Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "SEQ_proxy.h" | #include "SEQ_proxy.h" | ||||
| #include "SEQ_render.h" | #include "SEQ_render.h" | ||||
| #include "SEQ_sequencer.h" | #include "SEQ_sequencer.h" | ||||
| #include "SEQ_time.h" | |||||
| #include "SEQ_transform.h" | |||||
| #include "BLO_readfile.h" | #include "BLO_readfile.h" | ||||
| #include "readfile.h" | #include "readfile.h" | ||||
| /* Make preferences read-only, use versioning_userdef.c. */ | /* Make preferences read-only, use versioning_userdef.c. */ | ||||
| #define U (*((const UserDef *)&U)) | #define U (*((const UserDef *)&U)) | ||||
| static eSpaceSeq_Proxy_RenderSize get_sequencer_render_size(Main *bmain) | static eSpaceSeq_Proxy_RenderSize get_sequencer_render_size(Main *bmain) | ||||
| ▲ Show 20 Lines • Show All 613 Lines • ▼ Show 20 Lines | for (BezTriple *bezt = fcu->bezt; i < fcu->totvert; i++, bezt++) { | ||||
| const float factor = time_delta / total_len; | const float factor = time_delta / total_len; | ||||
| /* Current keyframe's right handle: */ | /* Current keyframe's right handle: */ | ||||
| madd_v2_v2v2fl(bezt->vec[2], v1, delta1, -factor); /* vec[2] = v1 - factor * delta1 */ | madd_v2_v2v2fl(bezt->vec[2], v1, delta1, -factor); /* vec[2] = v1 - factor * delta1 */ | ||||
| /* Next keyframe's left handle: */ | /* Next keyframe's left handle: */ | ||||
| madd_v2_v2v2fl(nextbezt->vec[0], v4, delta2, -factor); /* vec[0] = v4 - factor * delta2 */ | madd_v2_v2v2fl(nextbezt->vec[0], v4, delta2, -factor); /* vec[0] = v4 - factor * delta2 */ | ||||
| } | } | ||||
| } | } | ||||
| static void seq_update_meta_disp_range(Scene *scene, Editing *ed) | |||||
campbellbarton: This function isn't used anywhere. | |||||
| { | |||||
| LISTBASE_FOREACH_BACKWARD (MetaStack *, ms, &ed->metastack) { | |||||
| /* Update ms->disp_range from meta. */ | |||||
| if (ms->disp_range[0] == ms->disp_range[1]) { | |||||
| copy_v2_v2_int(ms->disp_range, &ms->parseq->startdisp); | |||||
| } | |||||
| /* 2.73+, keeping endpoints is important! | |||||
| * Moving them around means you can't usefully use metas in a complex edit. */ | |||||
| SEQ_transform_set_left_handle_frame(ms->parseq, ms->disp_range[0]); | |||||
| SEQ_transform_set_right_handle_frame(ms->parseq, ms->disp_range[1]); | |||||
| SEQ_transform_fix_single_image_seq_offsets(ms->parseq); | |||||
| /* Recalc all: the meta can have effects connected to it. */ | |||||
| LISTBASE_FOREACH (Sequence *, seq, ms->oldbasep) { | |||||
| SEQ_time_update_sequence(scene, seq); | |||||
| } | |||||
| } | |||||
| } | |||||
| /* NOLINTNEXTLINE: readability-function-size */ | /* NOLINTNEXTLINE: readability-function-size */ | ||||
| void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) | void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) | ||||
| { | { | ||||
| UNUSED_VARS(fd); | UNUSED_VARS(fd); | ||||
| if (MAIN_VERSION_ATLEAST(bmain, 290, 2) && MAIN_VERSION_OLDER(bmain, 291, 1)) { | if (MAIN_VERSION_ATLEAST(bmain, 290, 2) && MAIN_VERSION_OLDER(bmain, 291, 1)) { | ||||
| /* In this range, the extrude manifold could generate meshes with degenerated face. */ | /* In this range, the extrude manifold could generate meshes with degenerated face. */ | ||||
| LISTBASE_FOREACH (Mesh *, me, &bmain->meshes) { | LISTBASE_FOREACH (Mesh *, me, &bmain->meshes) { | ||||
| ▲ Show 20 Lines • Show All 786 Lines • Show Last 20 Lines | |||||
This function isn't used anywhere.