Don't accidentally insert bounding box data while trying to look it up

This commit is contained in:
baldurk
2017-05-31 12:39:58 +01:00
parent 58a2560c49
commit 2ca83cbea4
+4 -2
View File
@@ -1829,7 +1829,8 @@ void BufferViewer::resetArcball()
{
QMutexLocker autolock(&m_BBoxLock);
bbox = m_BBoxes[m_Ctx.CurEvent()];
if(m_BBoxes.contains(m_Ctx.CurEvent()))
bbox = m_BBoxes[m_Ctx.CurEvent()];
}
BufferItemModel *model = currentBufferModel();
@@ -3221,7 +3222,8 @@ void BufferViewer::on_autofitCamera_clicked()
{
QMutexLocker autolock(&m_BBoxLock);
bbox = m_BBoxes[m_Ctx.CurEvent()];
if(m_BBoxes.contains(m_Ctx.CurEvent()))
bbox = m_BBoxes[m_Ctx.CurEvent()];
}
BufferItemModel *model = NULL;