Frame properties: one field table for change-all, shared widgets
- FRAME_CHANGE_SCALARS generates FrameChange fields, the frames_change apply step and change-all population - Change-all draws component rows from tables instead of five widget lambdas and 46 aliases - Frame properties uses one edit path (edit::COMPLETE), a vec2 field table and an X/Y flip loop - Shared INTERPOLATION_LABELS and Document::layer_regions_get Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
30ea363c39
commit
a4638a422d
9 files changed
+421
-744
No files matched your search
@@ -955,6 +955,13 @@ namespace anm2ed
|
||||
return result;
|
||||
}
|
||||
|
||||
Storage* Document::layer_regions_get(int layerId)
|
||||
{
|
||||
auto layer = anm2.element_get(ElementType::LAYER_ELEMENT, layerId);
|
||||
auto regions = layer ? regionBySpritesheet.find(layer->spritesheetId) : regionBySpritesheet.end();
|
||||
return regions == regionBySpritesheet.end() ? nullptr : ®ions->second;
|
||||
}
|
||||
|
||||
Element* Document::frame_get() { return anm2.element_get(reference); }
|
||||
Element* Document::item_get() { return anm2.element_get(document::item_reference_get(reference)); }
|
||||
Element* Document::animation_get() { return anm2.element_get(ElementType::ANIMATION, reference.animationIndex); }
|
||||
|
||||
Reference in new issue
Block a user