Skip to content

Commit

Permalink
gi: add debug logging for scene data assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Dec 20, 2024
1 parent 6606863 commit e386d31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gi/impl/Gi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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;
}
}
Expand Down

0 comments on commit e386d31

Please sign in to comment.