VOXFORMAT: debug logging

master
Martin Gerhardy 2022-05-17 20:53:00 +02:00
parent eceb44d464
commit 9bf04b25b6
2 changed files with 5 additions and 0 deletions

View File

@ -286,13 +286,17 @@ bool OBJFormat::loadGroups(const core::String &filename, io::SeekableReadStream
}
core::StringMap<image::ImagePtr> textures;
Log::debug("%i materials", (int)materials.size());
for (tinyobj::material_t &material : materials) {
core::String name = material.diffuse_texname.c_str();
Log::debug("material: '%s'", name.c_str());
if (name.empty()) {
continue;
}
if (textures.hasKey(name)) {
Log::debug("texture for material '%s' is already loaded", name.c_str());
continue;
}

View File

@ -91,6 +91,7 @@ static inline glm::vec4 transform(const glm::mat4x4 &mat, const glm::ivec3 &pos,
static bool loadKeyFrames(voxelformat::SceneGraphNode& node, const ogt_vox_keyframe_transform* transformKeyframes, uint32_t numKeyframes) {
SceneGraphKeyFrames kf;
Log::debug("Load %d keyframes", numKeyframes);
kf.reserve(numKeyframes);
for (uint32_t k = 0; k < numKeyframes; ++k) {
const ogt_vox_keyframe_transform& transform_keyframe = transformKeyframes[k];