Skip to content

Commit

Permalink
fix flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed May 31, 2022
1 parent 4554f10 commit 356a7ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/content_cao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1531,8 +1531,12 @@ void GenericCAO::updateAnimationSpeed()

void GenericCAO::updateBonePosition(f32 dtime)
{
if (m_bone_override.empty() || !m_animated_meshnode)
if (!m_animated_meshnode)
return;
if (m_bone_override.empty()) {
m_animated_meshnode->setJointMode(scene::EJUOR_NONE);
return;
}

m_animated_meshnode->setJointMode(scene::EJUOR_CONTROL); // To write positions to the mesh on render
for (auto &it : m_bone_override) {
Expand Down

0 comments on commit 356a7ff

Please sign in to comment.