remove compile commands

This commit is contained in:
shweet committed 2026-08-06 11:47:20 -04:00
1 parent ff76932555
commit e32e781b46
4 files changed
+21 -9

No files matched your search

+1
View File
@@ -9,4 +9,5 @@ cmake-build-debug/
.vs/ .vs/
.idea/ .idea/
.codex .codex
compile_commands.json
AGENTS.md AGENTS.md
-1
View File
@@ -1 +0,0 @@
/home/anon/sda/Personal/Repos/anm2ed/out/build/linux-release/compile_commands.json
@@ -283,7 +283,7 @@ namespace anm2ed::imgui::wizard
"##Tint A", localize.get(BASIC_TINT), isTintR, isTintG, isTintB, isTintA, tint); "##Tint A", localize.get(BASIC_TINT), isTintR, isTintG, isTintB, isTintA, tint);
color3_value("##Is Color Offset R", "##Is Color Offset G", "##Is Color Offset B", "##Color Offset R", color3_value("##Is Color Offset R", "##Is Color Offset G", "##Is Color Offset B", "##Color Offset R",
"##Color Offset B", "##Color Offset G", localize.get(BASIC_COLOR_OFFSET), isColorOffsetR, "##Color Offset G", "##Color Offset B", localize.get(BASIC_COLOR_OFFSET), isColorOffsetR,
isColorOffsetG, isColorOffsetB, colorOffset); isColorOffsetG, isColorOffsetB, colorOffset);
ImGui::BeginDisabled(!isLayerPropertyAvailable); ImGui::BeginDisabled(!isLayerPropertyAvailable);
@@ -334,6 +334,12 @@ namespace anm2ed::imgui::wizard
auto frame_change = [&](ChangeType changeType) auto frame_change = [&](ChangeType changeType)
{ {
auto color_value_get = [&](float value)
{
if (changeType == ChangeType::MULTIPLY || changeType == ChangeType::DIVIDE) return (float)float_to_uint8(value);
return value;
};
FrameChange frameChange; FrameChange frameChange;
if (isCropX) frameChange.cropX = crop.x; if (isCropX) frameChange.cropX = crop.x;
if (isCropY) frameChange.cropY = crop.y; if (isCropY) frameChange.cropY = crop.y;
@@ -348,13 +354,13 @@ namespace anm2ed::imgui::wizard
if (isRotation) frameChange.rotation = std::make_optional(rotation); if (isRotation) frameChange.rotation = std::make_optional(rotation);
if (isDuration) frameChange.duration = std::make_optional(duration); if (isDuration) frameChange.duration = std::make_optional(duration);
if (isRegion) frameChange.regionId = std::make_optional(regionId); if (isRegion) frameChange.regionId = std::make_optional(regionId);
if (isTintR) frameChange.tintR = tint.r; if (isTintR) frameChange.tintR = color_value_get(tint.r);
if (isTintG) frameChange.tintG = tint.g; if (isTintG) frameChange.tintG = color_value_get(tint.g);
if (isTintB) frameChange.tintB = tint.b; if (isTintB) frameChange.tintB = color_value_get(tint.b);
if (isTintA) frameChange.tintA = tint.a; if (isTintA) frameChange.tintA = color_value_get(tint.a);
if (isColorOffsetR) frameChange.colorOffsetR = colorOffset.r; if (isColorOffsetR) frameChange.colorOffsetR = color_value_get(colorOffset.r);
if (isColorOffsetG) frameChange.colorOffsetG = colorOffset.g; if (isColorOffsetG) frameChange.colorOffsetG = color_value_get(colorOffset.g);
if (isColorOffsetB) frameChange.colorOffsetB = colorOffset.b; if (isColorOffsetB) frameChange.colorOffsetB = color_value_get(colorOffset.b);
if (isVisibleSet) frameChange.isVisible = std::make_optional(isVisible); if (isVisibleSet) frameChange.isVisible = std::make_optional(isVisible);
if (isInterpolationSet) frameChange.interpolation = std::make_optional(static_cast<Interpolation>(interpolation)); if (isInterpolationSet) frameChange.interpolation = std::make_optional(static_cast<Interpolation>(interpolation));
if (isFlipXSet) frameChange.isFlipX = std::make_optional(isFlipX); if (isFlipXSet) frameChange.isFlipX = std::make_optional(isFlipX);
+6
View File
@@ -364,12 +364,14 @@ namespace anm2ed
void Snapshots::anm2_push(const Snapshot& snapshot, const std::string& message) void Snapshots::anm2_push(const Snapshot& snapshot, const std::string& message)
{ {
if (pendingStep) commit(snapshot);
pendingStep = snapshots::step_anm2_seed(snapshot, message); pendingStep = snapshots::step_anm2_seed(snapshot, message);
} }
void Snapshots::tracks_push(const Snapshot& snapshot, const std::string& message, void Snapshots::tracks_push(const Snapshot& snapshot, const std::string& message,
const std::set<Reference>& trackReferences) const std::set<Reference>& trackReferences)
{ {
if (pendingStep) commit(snapshot);
SnapshotStep step{}; SnapshotStep step{};
step.message = message; step.message = message;
for (auto trackReference : trackReferences) for (auto trackReference : trackReferences)
@@ -382,6 +384,7 @@ namespace anm2ed
void Snapshots::frames_push(const Snapshot& snapshot, const std::string& message, void Snapshots::frames_push(const Snapshot& snapshot, const std::string& message,
const std::set<Reference>& frameReferences) const std::set<Reference>& frameReferences)
{ {
if (pendingStep) commit(snapshot);
SnapshotStep step{}; SnapshotStep step{};
step.message = message; step.message = message;
for (auto frameReference : frameReferences) for (auto frameReference : frameReferences)
@@ -393,6 +396,7 @@ namespace anm2ed
void Snapshots::regions_push(const Snapshot& snapshot, const std::string& message, int spritesheetId, void Snapshots::regions_push(const Snapshot& snapshot, const std::string& message, int spritesheetId,
const std::set<int>& regionIds) const std::set<int>& regionIds)
{ {
if (pendingStep) commit(snapshot);
SnapshotStep step{}; SnapshotStep step{};
step.message = message; step.message = message;
for (auto regionId : regionIds) for (auto regionId : regionIds)
@@ -403,6 +407,7 @@ namespace anm2ed
void Snapshots::textures_push(const Snapshot& snapshot, const std::string& message) void Snapshots::textures_push(const Snapshot& snapshot, const std::string& message)
{ {
if (pendingStep) commit(snapshot);
SnapshotStep step{}; SnapshotStep step{};
step.message = message; step.message = message;
snapshots::step_textures_seed(step, snapshot); snapshots::step_textures_seed(step, snapshot);
@@ -411,6 +416,7 @@ namespace anm2ed
void Snapshots::anm2_textures_push(const Snapshot& snapshot, const std::string& message) void Snapshots::anm2_textures_push(const Snapshot& snapshot, const std::string& message)
{ {
if (pendingStep) commit(snapshot);
auto step = snapshots::step_anm2_seed(snapshot, message); auto step = snapshots::step_anm2_seed(snapshot, message);
snapshots::step_textures_seed(step, snapshot); snapshots::step_textures_seed(step, snapshot);
pendingStep = std::move(step); pendingStep = std::move(step);