make TAnimModel possible to delete

This commit is contained in:
milek7
2019-02-23 14:44:21 +01:00
parent 5fe4e1213e
commit cbb61ce639
7 changed files with 69 additions and 79 deletions

View File

@@ -1036,8 +1036,8 @@ void TSubModel::RaAnimation(glm::mat4 &m, TAnimType a)
}
if (mAnimMatrix) // można by to dać np. do at_Translate
{
m *= glm::make_mat4(mAnimMatrix->e);
mAnimMatrix = NULL; // jak animator będzie potrzebował, to ustawi ponownie
m *= glm::make_mat4(mAnimMatrix.get()->e);
mAnimMatrix.reset(); // jak animator będzie potrzebował, to ustawi ponownie
}
};