diff options
author | WasabiRaptor <ketchupraptor@gmail.com> | 2025-05-21 22:34:08 -0400 |
---|---|---|
committer | WasabiRaptor <ketchupraptor@gmail.com> | 2025-05-21 22:34:08 -0400 |
commit | e703ea1614d92e4dddf104ef3bec789b37562c57 (patch) | |
tree | 3153d4613a368fbba692aee66d2fc507d98bebd3 | |
parent | cd2dc5a603b60191461e4360b0a6949eff7138f5 (diff) |
potential fixes
-rw-r--r-- | source/base/StarAnimatedPartSet.cpp | 2 | ||||
-rw-r--r-- | source/game/StarNetworkedAnimator.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/base/StarAnimatedPartSet.cpp b/source/base/StarAnimatedPartSet.cpp index 8826208..9b9f9d7 100644 --- a/source/base/StarAnimatedPartSet.cpp +++ b/source/base/StarAnimatedPartSet.cpp @@ -76,7 +76,7 @@ AnimatedPartSet::AnimatedPartSet(Json config, uint8_t animatorVersion) { } for (auto const& pair : m_stateTypes) - setActiveState(pair.first, pair.second.defaultState, true); + setActiveState(pair.first, pair.second.defaultState, true, false); } StringList AnimatedPartSet::stateTypes() const { diff --git a/source/game/StarNetworkedAnimator.cpp b/source/game/StarNetworkedAnimator.cpp index 31bd066..6ea3053 100644 --- a/source/game/StarNetworkedAnimator.cpp +++ b/source/game/StarNetworkedAnimator.cpp @@ -1264,6 +1264,7 @@ void NetworkedAnimator::setupNetStates() { addNetElement(&m_partTags[part]); for (auto& pair : m_stateInfo) { + pair.second.wasUpdated = true; pair.second.reverse.setCompatibilityVersion(8); addNetElement(&pair.second.reverse); addNetElement(&pair.second.stateIndex); @@ -1356,7 +1357,7 @@ void NetworkedAnimator::netElementsNeedLoad(bool initial) { void NetworkedAnimator::netElementsNeedStore() { for (auto& pair : m_stateInfo) { - if (pair.second.wasUpdated) { + if (pair.second.wasUpdated || (version() < 1)) { pair.second.stateIndex.set(m_animatedParts.activeStateIndex(pair.first)); pair.second.reverse.set(m_animatedParts.activeStateReverse(pair.first)); } |