- src/edit/ (in anm2ed_core): frame, track, animation, region, grid and change-all edits as plain functions of the model. Each returns the uids of what it created for the UI to select; copies get fresh uids. - Document::edit_apply snapshots, runs an operation and commits; edit_begin starts drag edits. window_edit, edit_command_push, snapshot_command_push, SnapshotKind and the tracks/frames/regions/textures snapshot kinds are gone; Snapshots has a single push(message, isTextures). - Timeline, animations, regions, shaders, items, wizards, taskbar and file merge call the edit layer; they keep only selection, scrolling and toasts. - Snapshots, Storage, Playback and ImGui core build into anm2ed_core, so undo is testable: tests/undo.cpp runs a seeded random walk of edits per fixture and checks every undo/redo state by hash, plus selection follow through undo. - types::edit renamed types::edit_state (clashed with the edit namespace). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
54 lines
3.7 KiB
XML
54 lines
3.7 KiB
XML
<AnimatedActor>
|
|
<Info CreatedBy="fixture" CreatedOn="01/01/2026 12:00:00 PM" Fps="30" Version="2"/>
|
|
<Content>
|
|
<Spritesheets>
|
|
<Spritesheet Id="0" Path="sheet.png"/>
|
|
</Spritesheets>
|
|
<Layers>
|
|
<Layer Id="0" Name="a" SpritesheetId="0"/>
|
|
<Layer Id="1" Name="b" SpritesheetId="0"/>
|
|
<Layer Id="2" Name="c" SpritesheetId="0"/>
|
|
</Layers>
|
|
<Nulls>
|
|
<Null Id="0" Name="n0"/>
|
|
<Null Id="1" Name="n1"/>
|
|
</Nulls>
|
|
<Events/>
|
|
</Content>
|
|
<Animations DefaultAnimation="A">
|
|
<Animation Name="A" FrameNum="4" Loop="true">
|
|
<RootAnimation>
|
|
<Frame XPosition="0" YPosition="0" Delay="4" Visible="true" XScale="100" YScale="100" ShearX="0" ShearY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</RootAnimation>
|
|
<LayerAnimations>
|
|
<Group Name="Main" IsExpanded="true" Visible="true">
|
|
<RootAnimation>
|
|
<Frame XPosition="0" YPosition="0" Delay="1" Visible="true" XScale="100" YScale="100" ShearX="0" ShearY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</RootAnimation>
|
|
<LayerAnimation LayerId="0" Visible="true">
|
|
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="1" YPosition="2" Delay="4" Visible="true" XScale="100" YScale="100" ShearX="0" ShearY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</LayerAnimation>
|
|
<LayerAnimation LayerId="1" Visible="true">
|
|
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="3" YPosition="4" Delay="4" Visible="true" XScale="100" YScale="100" ShearX="0" ShearY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</LayerAnimation>
|
|
</Group>
|
|
<LayerAnimation LayerId="2" Visible="true">
|
|
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="5" YPosition="6" Delay="4" Visible="true" XScale="100" YScale="100" ShearX="0" ShearY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</LayerAnimation>
|
|
</LayerAnimations>
|
|
<NullAnimations>
|
|
<Group Name="Hidden" IsExpanded="false" Visible="false">
|
|
<RootAnimation>
|
|
<Frame XPosition="0" YPosition="0" Delay="1" Visible="true" XScale="100" YScale="100" ShearX="0" ShearY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</RootAnimation>
|
|
<NullAnimation NullId="0" Visible="true">
|
|
<Frame XPosition="7" YPosition="8" Delay="4" Visible="true" XScale="100" YScale="100" ShearX="0" ShearY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</NullAnimation>
|
|
</Group>
|
|
<NullAnimation NullId="1" Visible="true"/>
|
|
</NullAnimations>
|
|
<Triggers/>
|
|
</Animation>
|
|
</Animations>
|
|
</AnimatedActor>
|