Change All Frame Properties: Depth

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-06 01:24:05 -04:00
1 parent f3fb7d5101
commit a440af3c95
5 files changed
+31 -2

No files matched your search

+5
View File
@@ -196,6 +196,11 @@ namespace anm2ed::model
if (change.duration) frame.duration = std::max(FRAME_DURATION_MIN, frame.duration);
if (itemType == ItemType::LAYER && change.regionId) frame.regionId = *change.regionId;
if (itemType == ItemType::LAYER && change.shaderId) frame.shaderId = *change.shaderId;
if (itemType == ItemType::LAYER && change.depth)
{
apply(frame.depth, change.depth);
frame.depth = std::clamp(frame.depth, -FRAME_DEPTH_MAX, FRAME_DEPTH_MAX);
}
#define X(name, member, isLayerOnly, isColor, isEnabled, value) \
if (!isLayerOnly || itemType == ItemType::LAYER) apply(frame.member, change.name);
FRAME_CHANGE_SCALARS