mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Don't accidentally insert bounding box data while trying to look it up
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user