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
+1
-16
@@ -492,7 +492,7 @@ namespace anm2ed
|
||||
}
|
||||
|
||||
bool Document::spritesheets_merge(const std::set<int>& ids, bool isAppendRight, bool isMakeRegions,
|
||||
bool isMakePrimaryRegion, origin::Type regionOrigin)
|
||||
bool isMakePrimaryRegion, Origin origin)
|
||||
{
|
||||
if (ids.size() < 2) return false;
|
||||
for (auto id : ids)
|
||||
@@ -501,7 +501,6 @@ namespace anm2ed
|
||||
|
||||
auto baseId = *ids.begin();
|
||||
auto base = model::item_get(model.content.spritesheets, baseId);
|
||||
auto origin = regionOrigin == origin::ORIGIN_CENTER ? Origin::CENTER : Origin::TOP_LEFT;
|
||||
auto mergedTexture = *texture_get(baseId);
|
||||
std::unordered_map<int, std::unordered_map<int, int>> regionIdMap{};
|
||||
|
||||
@@ -581,13 +580,6 @@ namespace anm2ed
|
||||
isForceDirty = false;
|
||||
}
|
||||
|
||||
void Document::spritesheet_hashes_reset()
|
||||
{
|
||||
spritesheetHashes.clear();
|
||||
spritesheetSaveHashes.clear();
|
||||
spritesheet_hashes_sync();
|
||||
}
|
||||
|
||||
void Document::spritesheet_hashes_sync()
|
||||
{
|
||||
std::set<int> validIds{};
|
||||
@@ -920,13 +912,6 @@ namespace anm2ed
|
||||
return result;
|
||||
}
|
||||
|
||||
const model::Frame* Document::frame_get() const { return model.frame_get(reference_get()); }
|
||||
const model::Track* Document::item_get() const { return model.track_get(reference_get()); }
|
||||
const model::Spritesheet* Document::spritesheet_get() const
|
||||
{
|
||||
return model::item_get(model.content.spritesheets, focused_id_get(SelectionKind::SPRITESHEETS));
|
||||
}
|
||||
|
||||
void Document::spritesheets_add(const std::vector<std::filesystem::path>& paths)
|
||||
{
|
||||
auto& items = model.content.spritesheets;
|
||||
|
||||
Reference in new issue
Block a user