mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
fixed some things
This commit is contained in:
parent
7c59b83419
commit
35f7216f2f
@ -92,6 +92,7 @@ namespace MWGui
|
||||
mBoughtItems.clear();
|
||||
|
||||
onWindowResize(static_cast<MyGUI::Window*>(mMainWidget));
|
||||
drawItems();
|
||||
}
|
||||
|
||||
void InventoryWindow::onWindowResize(MyGUI::Window* _sender)
|
||||
@ -293,7 +294,7 @@ namespace MWGui
|
||||
MyGUI::IntSize size = mAvatar->getSize();
|
||||
|
||||
MWBase::Environment::get().getWorld()->updateCharacterPreview (size.width, size.height);
|
||||
mAvatarImage->setSize(MyGUI::IntSize(512, 1024));
|
||||
mAvatarImage->setSize(MyGUI::IntSize(std::max(mAvatar->getSize().width, 512), std::max(mAvatar->getSize().height, 1024)));
|
||||
mAvatarImage->setImageTexture("CharacterPreview");
|
||||
}
|
||||
|
||||
|
@ -368,7 +368,7 @@ NifOgre::EntityList NpcAnimation::insertBoundedPart(const std::string &mesh, int
|
||||
|
||||
void NpcAnimation::runAnimation(float timepassed)
|
||||
{
|
||||
//if(timeToChange > .2)
|
||||
if(timeToChange > .2)
|
||||
{
|
||||
timeToChange = 0;
|
||||
updateParts();
|
||||
|
Loading…
x
Reference in New Issue
Block a user