Fixed small bug in shadow bounds computation

This commit is contained in:
Olivier Prat 2017-10-26 16:47:20 +02:00
parent 186b531be6
commit 5d83284ac5

View file

@ -140,8 +140,14 @@ void DepthSortShapesAndComputeBounds::run(const RenderContextPointer& renderCont
if (outItems == outShapes.end()) {
outItems = outShapes.insert(std::make_pair(pipeline.first, ItemBounds{})).first;
}
AABox bounds;
depthSortItems(renderContext, _frontToBack, inItems, outItems->second, &outBounds);
depthSortItems(renderContext, _frontToBack, inItems, outItems->second, &bounds);
if (!outBounds.isNull()) {
outBounds += bounds;
} else {
outBounds = bounds;
}
}
}