Editor: reset camera after cell drag and drop

When replacing a viewed cell via drag and drop the camera position is
not updated to better view the new cell. This flags the camera position
as not being set so a better default is set.
This commit is contained in:
Rob Cutmore 2017-04-04 18:54:58 -04:00
parent ab8294b281
commit f7664d4bb9

View file

@ -92,6 +92,7 @@ bool CSVRender::UnpagedWorldspaceWidget::handleDrop (const std::vector<CSMWorld:
mCellId = universalIdData.begin()->getId();
mCell.reset (new Cell (getDocument().getData(), mRootNode, mCellId));
mCamPositionSet = false;
update();
emit cellChanged(*universalIdData.begin());