forked from mirror/openmw-tes3mp
Set the race selection character preview in a valid (idle) pose.
This commit is contained in:
parent
aefd12dfe0
commit
a576e9e430
2 changed files with 8 additions and 0 deletions
|
@ -161,6 +161,7 @@ namespace MWRender
|
||||||
|
|
||||||
void RaceSelectionPreview::update(float angle)
|
void RaceSelectionPreview::update(float angle)
|
||||||
{
|
{
|
||||||
|
mAnimation->runAnimation(0.0f);
|
||||||
mNode->roll(Ogre::Radian(angle), Ogre::SceneNode::TS_LOCAL);
|
mNode->roll(Ogre::Radian(angle), Ogre::SceneNode::TS_LOCAL);
|
||||||
|
|
||||||
mNode->setVisible (true);
|
mNode->setVisible (true);
|
||||||
|
@ -175,4 +176,9 @@ namespace MWRender
|
||||||
rebuild();
|
rebuild();
|
||||||
update(0);
|
update(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RaceSelectionPreview::onSetup ()
|
||||||
|
{
|
||||||
|
mAnimation->play("idle", "start", "stop", false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,6 +85,8 @@ namespace MWRender
|
||||||
public:
|
public:
|
||||||
RaceSelectionPreview();
|
RaceSelectionPreview();
|
||||||
|
|
||||||
|
virtual void onSetup();
|
||||||
|
|
||||||
void update(float angle);
|
void update(float angle);
|
||||||
|
|
||||||
const ESM::NPC &getPrototype() const {
|
const ESM::NPC &getPrototype() const {
|
||||||
|
|
Loading…
Reference in a new issue