From e386d312718f995f4e5dcbbdbf461a5a4822dc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Delgado=20Kr=C3=A4mer?= Date: Fri, 20 Dec 2024 19:42:44 +0100 Subject: [PATCH] gi: add debug logging for scene data assignment --- src/gi/impl/Gi.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gi/impl/Gi.cpp b/src/gi/impl/Gi.cpp index 938da0a3..2bc16a1d 100644 --- a/src/gi/impl/Gi.cpp +++ b/src/gi/impl/Gi.cpp @@ -752,6 +752,10 @@ namespace gtl primvars.resize(sceneDataCount, nullptr); + if (sceneDataCount > 0) + { + GB_DEBUG("scene data for mesh {} with material {}:", mesh->name, material->name); + } for (size_t i = 0; i < sceneDataCount; i++) { const char* sceneDataName = sceneDataNames[i]; @@ -769,10 +773,11 @@ namespace gtl if (!primvar) { - GB_DEBUG("scene data {} not found for mesh {} with material {}", mesh->name, sceneDataName, material->name); + GB_DEBUG("> [{}] {} (not found!)", i, sceneDataName); continue; } + GB_DEBUG("> [{}] {}", i, sceneDataName); primvars[i] = primvar; } }