moof::script script;
std::string path(name);
- if (!Animation::find_path(path))
+ if (!resource::find(path))
{
throw std::runtime_error("cannot find resource " + name);
}
return impl_->mFrameIndex;
}
-
-/**
- * Specialized search location for animation files. They can be found in
- * the "animations" subdirectory of any of the search directories.
- */
-
-bool Animation::find_path(std::string& name)
-{
- return moof::resource::find_path(name, "animations/", "lua");
-}
-