mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Make sure to keep the character preview animation updated
This commit is contained in:
parent
7fe877d8ea
commit
60a75cb5ee
@ -121,7 +121,8 @@ namespace MWRender
|
||||
|
||||
void InventoryPreview::update(int sizeX, int sizeY)
|
||||
{
|
||||
mAnimation->forceUpdate ();
|
||||
mAnimation->runAnimation(0.0f);
|
||||
mAnimation->forceUpdate();
|
||||
|
||||
mViewport->setDimensions (0, 0, std::min(1.f, float(sizeX) / float(512)), std::min(1.f, float(sizeY) / float(1024)));
|
||||
|
||||
@ -145,7 +146,6 @@ namespace MWRender
|
||||
mSelectionBuffer = new OEngine::Render::SelectionBuffer(mCamera, 512, 1024, RV_PlayerPreview);
|
||||
|
||||
mAnimation->play("inventoryhandtohand", "start", false);
|
||||
mAnimation->runAnimation(0.0f);
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user