forked from teamnwah/openmw-tes3coop
Merge remote-tracking branch 'rcutmore/bug-3484'
This commit is contained in:
commit
9d5c46027d
3 changed files with 7 additions and 5 deletions
|
@ -632,7 +632,7 @@ namespace CSVRender
|
||||||
getCamera()->getViewMatrix().orthoNormal(getCamera()->getViewMatrix());
|
getCamera()->getViewMatrix().orthoNormal(getCamera()->getViewMatrix());
|
||||||
}
|
}
|
||||||
|
|
||||||
void OrbitCameraController::onActivate()
|
void OrbitCameraController::reset()
|
||||||
{
|
{
|
||||||
mInitialized = false;
|
mInitialized = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,8 +63,6 @@ namespace CSVRender
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual void onActivate(){}
|
|
||||||
|
|
||||||
void addShortcut(CSMPrefs::Shortcut* shortcut);
|
void addShortcut(CSMPrefs::Shortcut* shortcut);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -159,9 +157,10 @@ namespace CSVRender
|
||||||
|
|
||||||
void update(double dt);
|
void update(double dt);
|
||||||
|
|
||||||
private:
|
/// \brief Flag controller to be re-initialized.
|
||||||
|
void reset();
|
||||||
|
|
||||||
void onActivate();
|
private:
|
||||||
|
|
||||||
void initialize();
|
void initialize();
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include "../widget/scenetooltoggle.hpp"
|
#include "../widget/scenetooltoggle.hpp"
|
||||||
#include "../widget/scenetooltoggle2.hpp"
|
#include "../widget/scenetooltoggle2.hpp"
|
||||||
|
|
||||||
|
#include "cameracontroller.hpp"
|
||||||
#include "mask.hpp"
|
#include "mask.hpp"
|
||||||
#include "tagbase.hpp"
|
#include "tagbase.hpp"
|
||||||
|
|
||||||
|
@ -92,6 +93,8 @@ bool CSVRender::UnpagedWorldspaceWidget::handleDrop (const std::vector<CSMWorld:
|
||||||
mCellId = universalIdData.begin()->getId();
|
mCellId = universalIdData.begin()->getId();
|
||||||
|
|
||||||
mCell.reset (new Cell (getDocument().getData(), mRootNode, mCellId));
|
mCell.reset (new Cell (getDocument().getData(), mRootNode, mCellId));
|
||||||
|
mCamPositionSet = false;
|
||||||
|
mOrbitCamControl->reset();
|
||||||
|
|
||||||
update();
|
update();
|
||||||
emit cellChanged(*universalIdData.begin());
|
emit cellChanged(*universalIdData.begin());
|
||||||
|
|
Loading…
Reference in a new issue