baking frames update
This commit is contained in:
@@ -1287,13 +1287,17 @@ namespace anm2ed::imgui
|
|||||||
|
|
||||||
if (ImGui::Button("Bake", widgetSize))
|
if (ImGui::Button("Bake", widgetSize))
|
||||||
{
|
{
|
||||||
if (auto item = document.item_get())
|
auto frames_bake = [&]()
|
||||||
for (auto it = frames.selection.rbegin(); it != frames.selection.rend(); ++it)
|
|
||||||
{
|
{
|
||||||
auto i = *it;
|
if (auto item = document.item_get())
|
||||||
DOCUMENT_EDIT(document, "Bake Frames", Document::FRAMES,
|
for (auto i : frames.selection | std::views::reverse)
|
||||||
item->frames_bake(i, interval, isRoundScale, isRoundRotation));
|
item->frames_bake(i, interval, isRoundScale, isRoundRotation);
|
||||||
}
|
|
||||||
|
frames.clear();
|
||||||
|
};
|
||||||
|
|
||||||
|
DOCUMENT_EDIT(document, "Bake Frames", Document::FRAMES, frames_bake());
|
||||||
|
|
||||||
bakePopup.close();
|
bakePopup.close();
|
||||||
}
|
}
|
||||||
ImGui::SetItemTooltip("Bake the selected frame(s) with the options selected.");
|
ImGui::SetItemTooltip("Bake the selected frame(s) with the options selected.");
|
||||||
|
|||||||
@@ -40,6 +40,6 @@ Alternatively, if you have subscribed to the mod, you can find the latest releas
|
|||||||
[h3]Happy animating![/h3]
|
[h3]Happy animating![/h3]
|
||||||
[img]https://files.catbox.moe/4auc1c.gif[/img]
|
[img]https://files.catbox.moe/4auc1c.gif[/img]
|
||||||
</description>
|
</description>
|
||||||
<version>2.3</version>
|
<version>2.4</version>
|
||||||
<visibility>Public</visibility>
|
<visibility>Public</visibility>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
Reference in New Issue
Block a user