Skip to content

Commit 3efb80c

Browse files
committed
Add debug assertion in parseVolumes
1 parent 0e82051 commit 3efb80c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/slg/scene/parsevolumes.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ void Scene::ParseVolumes(const Properties &props) {
7070
//const bool wasLightSource = oldMat->IsLightSource();
7171

7272
auto [newMatRef, oldMatPtr] = matDefs.DefineMaterial(std::move(newMat));
73+
assert(oldMatRef == *oldMatPtr);
7374

7475
// Replace old material direct references with new one
7576
objDefs.UpdateMaterialReferences(oldMatRef, newMatRef);

0 commit comments

Comments
 (0)