1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 21:23:54 +00:00

Merge remote-tracking branch 'rcutmore/bug-3484'

This commit is contained in:
Marc Zinnschlag 2017-04-07 10:38:16 +02:00
commit 9d5c46027d
3 changed files with 7 additions and 5 deletions

View file

@ -632,7 +632,7 @@ namespace CSVRender
getCamera()->getViewMatrix().orthoNormal(getCamera()->getViewMatrix());
}
void OrbitCameraController::onActivate()
void OrbitCameraController::reset()
{
mInitialized = false;
}

View file

@ -63,8 +63,6 @@ namespace CSVRender
protected:
virtual void onActivate(){}
void addShortcut(CSMPrefs::Shortcut* shortcut);
private:
@ -159,9 +157,10 @@ namespace CSVRender
void update(double dt);
private:
/// \brief Flag controller to be re-initialized.
void reset();
void onActivate();
private:
void initialize();

View file

@ -15,6 +15,7 @@
#include "../widget/scenetooltoggle.hpp"
#include "../widget/scenetooltoggle2.hpp"
#include "cameracontroller.hpp"
#include "mask.hpp"
#include "tagbase.hpp"
@ -92,6 +93,8 @@ bool CSVRender::UnpagedWorldspaceWidget::handleDrop (const std::vector<CSMWorld:
mCellId = universalIdData.begin()->getId();
mCell.reset (new Cell (getDocument().getData(), mRootNode, mCellId));
mCamPositionSet = false;
mOrbitCamControl->reset();
update();
emit cellChanged(*universalIdData.begin());