mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-06 09:39:49 +00:00
Merge pull request #1060 from MiroslavR/fix-anim-state-saving
Fix animation state not saving in some cases
This commit is contained in:
commit
0f71efb919
@ -238,7 +238,7 @@ namespace MWWorld
|
|||||||
|
|
||||||
bool RefData::hasChanged() const
|
bool RefData::hasChanged() const
|
||||||
{
|
{
|
||||||
return mChanged;
|
return mChanged || !mAnimationState.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RefData::activate()
|
bool RefData::activate()
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
|
|
||||||
namespace ESM
|
namespace ESM
|
||||||
{
|
{
|
||||||
|
bool AnimationState::empty() const
|
||||||
|
{
|
||||||
|
return mScriptedAnims.empty();
|
||||||
|
}
|
||||||
|
|
||||||
void AnimationState::load(ESMReader& esm)
|
void AnimationState::load(ESMReader& esm)
|
||||||
{
|
{
|
||||||
mScriptedAnims.clear();
|
mScriptedAnims.clear();
|
||||||
|
@ -26,6 +26,8 @@ namespace ESM
|
|||||||
typedef std::vector<ScriptedAnimation> ScriptedAnimations;
|
typedef std::vector<ScriptedAnimation> ScriptedAnimations;
|
||||||
ScriptedAnimations mScriptedAnims;
|
ScriptedAnimations mScriptedAnims;
|
||||||
|
|
||||||
|
bool empty() const;
|
||||||
|
|
||||||
void load(ESMReader& esm);
|
void load(ESMReader& esm);
|
||||||
void save(ESMWriter& esm) const;
|
void save(ESMWriter& esm) const;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user