mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
fix animation loading
This commit is contained in:
parent
5500fe34ac
commit
719135fe19
2 changed files with 7 additions and 1 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#include "coders/obj.hpp"
|
||||
#include "constants.hpp"
|
||||
#include "data/dynamic.hpp"
|
||||
#include "debug/Logger.hpp"
|
||||
#include "files/engine_paths.hpp"
|
||||
#include "files/files.hpp"
|
||||
#include "frontend/UiDocument.hpp"
|
||||
|
|
@ -26,6 +27,8 @@
|
|||
#include "Assets.hpp"
|
||||
#include "AssetsLoader.hpp"
|
||||
|
||||
static debug::Logger logger("assetload-funcs");
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
static bool animation(
|
||||
|
|
@ -263,7 +266,7 @@ static TextureAnimation create_animation(
|
|||
|
||||
for (const auto& elem : frameList) {
|
||||
if (!srcAtlas->has(elem.first)) {
|
||||
std::cerr << "Unknown frame name: " << elem.first << std::endl;
|
||||
logger.error() << "unknown frame name: " << elem.first;
|
||||
continue;
|
||||
}
|
||||
region = srcAtlas->get(elem.first);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue