Remove trackball mode

openmw-39
Aesylwinn 9 years ago
parent 0e75b4a234
commit c8bae38a8e

@ -7,7 +7,7 @@ CSVRender::PreviewWidget::PreviewWidget (CSMWorld::Data& data,
const std::string& id, bool referenceable, QWidget *parent) const std::string& id, bool referenceable, QWidget *parent)
: SceneWidget (data.getResourceSystem(), parent), mData (data), mObject(data, mRootNode, id, referenceable) : SceneWidget (data.getResourceSystem(), parent), mData (data), mObject(data, mRootNode, id, referenceable)
{ {
selectNavigationMode("trackball"); selectNavigationMode("orbit");
QAbstractItemModel *referenceables = QAbstractItemModel *referenceables =
mData.getTableModel (CSMWorld::UniversalId::Type_Referenceables); mData.getTableModel (CSMWorld::UniversalId::Type_Referenceables);

@ -353,12 +353,6 @@ void SceneWidget::selectNavigationMode (const std::string& mode)
mCurrentCamControl = mOrbitCamControl.get(); mCurrentCamControl = mOrbitCamControl.get();
mCurrentCamControl->setCamera(getCamera()); mCurrentCamControl->setCamera(getCamera());
} }
else if (mode=="trackball")
{
mCurrentCamControl->setCamera(NULL);
mCurrentCamControl = mOrbitCamControl.get();
mCurrentCamControl->setCamera(getCamera());
}
} }
bool SceneWidget::storeMappingSetting (const CSMPrefs::Setting *setting) bool SceneWidget::storeMappingSetting (const CSMPrefs::Setting *setting)

Loading…
Cancel
Save