Fixed RawAnimInspector changing any specific animation clip's values, causing a change in all animation clips' values #413

Merged
Pycorax merged 1 commits from SP3-22-AnimationController into main 2023-03-10 16:22:00 +08:00
1 changed files with 5 additions and 0 deletions

View File

@ -158,8 +158,11 @@ namespace SHADE
if (SHEditorUI::CollapsingHeader("Existing Animation Clips"))
{
ImGui::Indent();
int i = 0;
for (auto animClip : childAnimClips)
{
ImGui::PushID(i++);
bool changed = false;
std::optional<std::string> animClipName = SHResourceManager::GetAssetName<SHAnimationClip>(animClip);
@ -197,6 +200,8 @@ namespace SHADE
SHAssetManager::SaveAsset(assetId.value());
}
}
ImGui::PopID();
}
// Extra separator if there is more than one