fix new frame values not being visible immediately after adding
This commit is contained in:
@@ -203,7 +203,7 @@ namespace anm2ed::imgui
|
|||||||
if (frame)
|
if (frame)
|
||||||
{
|
{
|
||||||
auto addFrame = *frame;
|
auto addFrame = *frame;
|
||||||
item->frames.insert(item->frames.begin() + reference.frameIndex, addFrame);
|
item->frames.insert(item->frames.begin() + reference.frameIndex + 1, addFrame);
|
||||||
reference.frameIndex++;
|
reference.frameIndex++;
|
||||||
}
|
}
|
||||||
else if (!item->frames.empty())
|
else if (!item->frames.empty())
|
||||||
@@ -220,6 +220,8 @@ namespace anm2ed::imgui
|
|||||||
}
|
}
|
||||||
|
|
||||||
frames_selection_set_reference();
|
frames_selection_set_reference();
|
||||||
|
if (reference.itemType != anm2::TRIGGER)
|
||||||
|
document.frameTime = item->frame_time_from_index_get(reference.frameIndex);
|
||||||
};
|
};
|
||||||
|
|
||||||
DOCUMENT_EDIT(document, localize.get(EDIT_INSERT_FRAME), Document::FRAMES, behavior());
|
DOCUMENT_EDIT(document, localize.get(EDIT_INSERT_FRAME), Document::FRAMES, behavior());
|
||||||
|
|||||||
Reference in New Issue
Block a user