Stage 10a: delete dead code, merge tiny files, unify duplicated concepts
- Dead code: util/map, util/unordered_map, unused vector/math/string/input helpers, Document getters, special-interpolation bake leftovers, triggers_sort, SnapshotStack::max_size_get, AudioStream capture API. - Merges: util/xml, util/string, resource/strings.cpp inlined; constants into input.hpp; tooltip into layout; Recorder into render; onionskin, tools, welcome and frame properties are panel functions; timeline popups.cpp folded into timeline.cpp. - util/origin.hpp replaced by model Origin (the merge setting stays a combo index, so saved preferences keep their meaning). - Item type names/icons/colors moved from model/common.hpp to the timeline header; the model no longer includes icon/strings headers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4d16f21541
commit
4c569cb1e5
60 files changed
+605
-1021
No files matched your search
@@ -203,24 +203,6 @@ namespace anm2ed::model
|
||||
}
|
||||
}
|
||||
|
||||
// Bakes every ease-in/ease-out frame (not linear ones) in every track into single-step frames.
|
||||
void special_interpolated_frames_bake(Model& model, int interval, bool isRoundScale, bool isRoundRotation)
|
||||
{
|
||||
for (int i = 0; i < model.animations_count_get(); ++i)
|
||||
animation_tracks_each(*model.animation_edit(i),
|
||||
[&](Track& track)
|
||||
{
|
||||
if (track.type == ItemType::TRIGGER) return;
|
||||
for (int index = (int)track.frames.size() - 1; index >= 0; --index)
|
||||
{
|
||||
auto interpolation = track.frames[index].interpolation;
|
||||
if (interpolation == Interpolation::NONE || interpolation == Interpolation::LINEAR)
|
||||
continue;
|
||||
frame_bake(track, index, interval, isRoundScale, isRoundRotation);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Bounds of all visible layer frames over the animation's length, or -1 when nothing is drawn.
|
||||
glm::vec4 animation_rect(const Model& model, const Animation& animation, bool isRootTransform)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user