Layer frame depth: change a layer's draw order for part of an animation

Layer frames get an editor-only Depth (Frame Properties, property
copy/paste): +N draws that layer N layers above its place in the timeline
for that frame, -N below; stepped, not interpolated. The draw list orders
layers by it (preview, renders, CLI). Saved as Depth in the editor's copy
only; the Isaac Compatibility Warning and anm2ed info count frames using it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-06 01:21:50 -04:00
1 parent 94d0bbf206
commit f3fb7d5101
13 files changed
+78 -6

No files matched your search

+1
View File
@@ -80,6 +80,7 @@ namespace anm2ed::edit
INTERPOLATION,
DURATION,
SHADER,
DEPTH,
EVENT,
SOUNDS,
COUNT
+4 -1
View File
@@ -213,7 +213,7 @@ namespace anm2ed::edit
if (property == FrameProperty::EVENT || property == FrameProperty::SOUNDS) return false;
auto isLayerOnly = property == FrameProperty::PIVOT || property == FrameProperty::CROP ||
property == FrameProperty::SIZE || property == FrameProperty::REGION ||
property == FrameProperty::SHADER;
property == FrameProperty::SHADER || property == FrameProperty::DEPTH;
return type == ItemType::LAYER || !isLayerOnly;
}
@@ -266,6 +266,9 @@ namespace anm2ed::edit
case FrameProperty::SHADER:
target.shaderId = source.shaderId;
break;
case FrameProperty::DEPTH:
target.depth = source.depth;
break;
case FrameProperty::EVENT:
target.eventId = source.eventId;
break;