Only calculate bounding box data on mesh views

This commit is contained in:
baldurk
2019-03-01 11:34:15 +00:00
parent 9fc8c0bd66
commit 301ef89aac
+2 -2
View File
@@ -2242,7 +2242,7 @@ void BufferViewer::populateBBox(PopulateBufferData *bufdata)
{
const DrawcallDescription *draw = m_Ctx.CurDrawcall();
if(draw)
if(draw && m_MeshView)
{
uint32_t eventId = draw->eventId;
bool calcNeeded = false;
@@ -2353,7 +2353,7 @@ void BufferViewer::calcBoundingData(CalcBoundingBoxData &bbox)
QVariantList list = el->GetVariants(bytes, d.end);
for(int comp = 0; comp < list.count(); comp++)
for(int comp = 0; comp < 4 && comp < list.count(); comp++)
{
const QVariant &v = list[comp];