Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 682 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 do_versions_strip_cache_settings_recursive(const ListBase *seqbase) | |||||
| { | |||||
| LISTBASE_FOREACH (Sequence *, seq, seqbase) { | |||||
| seq->cache_flag = 0; | |||||
| if (seq->type == SEQ_TYPE_META) { | |||||
| do_versions_strip_cache_settings_recursive(&seq->seqbase); | |||||
| } | |||||
| } | |||||
| } | |||||
| /* 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 748 Lines • ▼ Show 20 Lines | FOREACH_NODETREE_BEGIN (bmain, ntree, id) { | ||||
| GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE : | GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE : | ||||
| GEO_NODE_ATTRIBUTE_INPUT_FLOAT; | GEO_NODE_ATTRIBUTE_INPUT_FLOAT; | ||||
| node->storage = data; | node->storage = data; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| FOREACH_NODETREE_END; | FOREACH_NODETREE_END; | ||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | |||||
| Editing *ed = SEQ_editing_get(scene, false); | |||||
| if (ed == NULL) { | |||||
| continue; | |||||
| } | |||||
| ed->cache_flag = (SEQ_CACHE_STORE_RAW | SEQ_CACHE_STORE_FINAL_OUT); | |||||
| do_versions_strip_cache_settings_recursive(&ed->seqbase); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||