FIRE-30823: Fix looped animations stopping on reload in animation upload preview

master
Ansariel 2021-03-12 13:43:39 +01:00
parent 44ffd93e56
commit 42def8950f
1 changed files with 4 additions and 1 deletions

View File

@ -278,6 +278,7 @@ BOOL LLFloaterBvhPreview::postBuild()
// </FS:CR>
// <FS> Reload animation from disk
setAnimCallbacks();
loadBVH();
return TRUE;
@ -393,7 +394,8 @@ BOOL LLFloaterBvhPreview::loadBVH()
if (success)
{
setAnimCallbacks() ;
// <FS> Reload animation from disk; moved to postBuild
//setAnimCallbacks() ;
const LLBBoxLocal &pelvis_bbox = motionp->getPelvisBBox();
@ -1470,6 +1472,7 @@ void LLFloaterBvhPreview::onBtnReload(void* userdata)
floaterp->unloadMotion();
floaterp->loadBVH();
floaterp->resetMotion();
}
// </FS>