Skip to content

Commit 480b015

Browse files
committed
fix animation solver cache
#180
1 parent cfb3a6a commit 480b015

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

game/graphics/mesh/animationsolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ const Animation::Sequence* AnimationSolver::solveNext(const Animation::Sequence&
409409
const char* name = sq.next.c_str();
410410
for(size_t i=overlay.size();i>0;){
411411
--i;
412-
if(overlay[i].skeleton->animation()==sq.owner)
412+
if(overlay[i].skeleton->animation()==sq.owner && sq.nextPtr!=nullptr)
413413
return sq.nextPtr; // fast-forward path
414414
if(auto s = overlay[i].skeleton->sequence(name))
415415
return s;

0 commit comments

Comments
 (0)