VOXFORMAT: debug logging
parent
eceb44d464
commit
9bf04b25b6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue