Merge pull request #193 from OpenMW/master

Add OpenMW commits up to 7 March 2017
0.6.1
David Cernat 8 years ago committed by GitHub
commit 6557577c03

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

@ -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();

@ -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());

Loading…
Cancel
Save