mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
Add check reading animation ptr
This commit is contained in:
parent
8e86786e5b
commit
caa5575573
@ -196,6 +196,7 @@ glm::vec3 CharacterObject::updateMovementAnimation(float dt) {
|
||||
if (it != movementAnimation->bones.end()) {
|
||||
AnimationBone* rootBone = it->second;
|
||||
float step = dt;
|
||||
RW_CHECK(animator->getAnimation(AnimIndexMovement), "Failed to read animation using index " << AnimIndexMovement);
|
||||
const float duration =
|
||||
animator->getAnimation(AnimIndexMovement)->duration;
|
||||
float animTime =
|
||||
|
Loading…
Reference in New Issue
Block a user