mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 18:06:41 +00:00
Merge pull request #3088 from akortunov/weapon_sheathing
Disable shield animation when we launch a torch one
This commit is contained in:
commit
d0329d3dd9
2 changed files with 4 additions and 1 deletions
|
@ -124,6 +124,7 @@
|
||||||
Bug #6007: Crash when ending cutscene is playing
|
Bug #6007: Crash when ending cutscene is playing
|
||||||
Bug #6016: Greeting interrupts Fargoth's sneak-walk
|
Bug #6016: Greeting interrupts Fargoth's sneak-walk
|
||||||
Bug #6028: Particle system controller values are incorrectly used
|
Bug #6028: Particle system controller values are incorrectly used
|
||||||
|
Bug #6043: Actor can have torch missing when torch animation is played
|
||||||
Feature #390: 3rd person look "over the shoulder"
|
Feature #390: 3rd person look "over the shoulder"
|
||||||
Feature #832: OpenMW-CS: Handle deleted references
|
Feature #832: OpenMW-CS: Handle deleted references
|
||||||
Feature #1536: Show more information about level on menu
|
Feature #1536: Show more information about level on menu
|
||||||
|
|
|
@ -1876,8 +1876,10 @@ bool CharacterController::updateWeaponState(CharacterState& idle)
|
||||||
MWWorld::ConstContainerStoreIterator torch = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedLeft);
|
MWWorld::ConstContainerStoreIterator torch = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedLeft);
|
||||||
if(torch != inv.end() && torch->getTypeName() == typeid(ESM::Light).name()
|
if(torch != inv.end() && torch->getTypeName() == typeid(ESM::Light).name()
|
||||||
&& updateCarriedLeftVisible(mWeaponType))
|
&& updateCarriedLeftVisible(mWeaponType))
|
||||||
|
|
||||||
{
|
{
|
||||||
|
if (mAnimation->isPlaying("shield"))
|
||||||
|
mAnimation->disable("shield");
|
||||||
|
|
||||||
mAnimation->play("torch", Priority_Torch, MWRender::Animation::BlendMask_LeftArm,
|
mAnimation->play("torch", Priority_Torch, MWRender::Animation::BlendMask_LeftArm,
|
||||||
false, 1.0f, "start", "stop", 0.0f, (~(size_t)0), true);
|
false, 1.0f, "start", "stop", 0.0f, (~(size_t)0), true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue