mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed 1-frame animation bug
Former-commit-id: fc591de5026e35cab1ef72ce250b19cbe2fcec0e
This commit is contained in:
parent
413bdf44e5
commit
824fb8a6c0
@ -91,9 +91,9 @@ impl Figures {
|
|||||||
.entry(entity)
|
.entry(entity)
|
||||||
.or_insert_with(|| FigureState::new(renderer, CharacterSkeleton::new()));
|
.or_insert_with(|| FigureState::new(renderer, CharacterSkeleton::new()));
|
||||||
|
|
||||||
state.update(renderer, pos.0, dir.0);
|
|
||||||
|
|
||||||
RunAnimation::update_skeleton(&mut state.skeleton, time);
|
RunAnimation::update_skeleton(&mut state.skeleton, time);
|
||||||
|
|
||||||
|
state.update(renderer, pos.0, dir.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.states.retain(|entity, _| ecs.entities().is_alive(*entity));
|
self.states.retain(|entity, _| ecs.entities().is_alive(*entity));
|
||||||
|
Loading…
Reference in New Issue
Block a user