Fixed Model::SetMesh bug with static meshs
Former-commit-id: 5fcccf6ac485528bcdd4f1250a2ba948a50ca456
This commit is contained in:
parent
24af375694
commit
be70e48118
|
|
@ -303,7 +303,7 @@ void NzModel::SetMesh(const NzMesh* mesh, const NzModelParameters& modelParamete
|
|||
if (m_mesh->GetAnimationType() == nzAnimationType_Skeletal)
|
||||
m_skeleton = *mesh->GetSkeleton(); // Copie du squelette template
|
||||
|
||||
if (modelParameters.loadAnimation)
|
||||
if (modelParameters.loadAnimation && m_mesh->IsAnimable())
|
||||
{
|
||||
NzString animationPath = m_mesh->GetAnimation();
|
||||
if (!animationPath.IsEmpty())
|
||||
|
|
|
|||
Loading…
Reference in New Issue