mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 07:23:52 +00:00
Make sure to keep the character preview animation updated
This commit is contained in:
parent
7fe877d8ea
commit
60a75cb5ee
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue