X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FAnimation.cc;h=fead5cab1697f67682d5df9546f14f7308356779;hp=503f77a47c2eecf21a24a2986d082061358af829;hb=ed04ddaaa59dcc42e375ec492dbda77f693530e9;hpb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c diff --git a/src/Animation.cc b/src/Animation.cc index 503f77a..fead5ca 100644 --- a/src/Animation.cc +++ b/src/Animation.cc @@ -137,12 +137,12 @@ public: void init(const std::string& name) { moof::script script; - std::string path(name); + std::string path = moof::resource::find_file("animations/"+name, "lua"); - if (!resource::find(path)) - { - throw std::runtime_error("cannot find resource " + name); - } + //if (!resource::find(path)) + //{ + //throw std::runtime_error("cannot find resource " + name); + //} script.import_base_library(); moof::log::import(script); @@ -214,7 +214,6 @@ public: std::map::iterator it; it = mData->mSequences.find(name); - if (it != mData->mSequences.end()) { mCurrentSequence = &(*it).second;