X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanimation.cpp;h=1aa8242aca1eca403d10e3cb33a6f9d9fd8d1bc6;hb=5c883e77411a7eccc58d345b7d53d8709ae39452;hp=efb67c972ded72ad916c286def76bd34bf5de28c;hpb=164d77011ab4ebe76c9bf2b7ed8d8dd8ebc20e61;p=libs%2Fgl.git diff --git a/source/animation.cpp b/source/animation.cpp index efb67c97..1aa8242a 100644 --- a/source/animation.cpp +++ b/source/animation.cpp @@ -3,6 +3,7 @@ #include #include "animation.h" #include "armature.h" +#include "error.h" #include "keyframe.h" #include "pose.h" @@ -206,7 +207,7 @@ Matrix Animation::Iterator::get_matrix() const Matrix Animation::Iterator::get_pose_matrix(unsigned link) const { if(!animation.armature) - throw logic_error("Animation::Iterator::get_pose_matrix"); + throw invalid_operation("Animation::Iterator::get_pose_matrix"); if(link>animation.armature->get_max_link_index()) throw out_of_range("Animation::Iterator::get_pose_matrix");