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

Remove debug settings and minor cleanup.

This commit is contained in:
cc9cii 2014-10-31 22:04:10 +11:00
parent fbadaf55ee
commit aa7b693a13
5 changed files with 1 additions and 19 deletions

View file

@ -161,14 +161,6 @@ void CSMSettings::UserSettings::buildSettingModelDefaults()
ritd->setDeclaredValues (values);
}
declareSection ("debug", "Debug Options");
{
Setting *mousePicking = createSetting (Type_CheckBox, "mouse-picking", "Debug Render Mouse-Picking");
mousePicking->setDefaultValue ("false");
mousePicking->setToolTip ("Enable redering debug information for mouse picking. "
"This option may be removed in future once the mouse picking feature is completed.");
}
declareSection ("table-input", "Table Input");
{
QString inPlaceEdit ("Edit in Place");

View file

@ -417,7 +417,6 @@ namespace CSVRender
void SceneWidget::updateScene()
{
flagAsModified();
update();
}
void SceneWidget::updateOverlay()

View file

@ -925,7 +925,5 @@ void CSVRender::WorldspaceWidget::placeObject(const std::string sceneNode, const
bool CSVRender::WorldspaceWidget::isDebug()
{
CSMSettings::UserSettings &userSettings = CSMSettings::UserSettings::instance();
return userSettings.setting("debug/mouse-picking", QString("false")) == "true" ? true : false;
return false;
}

View file

@ -213,11 +213,6 @@ namespace CSVWorld
mSceneManagers.push_back(sceneMgr);
}
std::list<CSVRender::SceneWidget *> PhysicsSystem::sceneWidgets()
{
return mSceneWidgets;
}
void PhysicsSystem::toggleDebugRendering(Ogre::SceneManager *sceneMgr)
{
// FIXME: should check if sceneMgr is in the list

View file

@ -72,8 +72,6 @@ namespace CSVWorld
std::string sceneNodeToMesh(std::string sceneNodeName);
std::list<CSVRender::SceneWidget *> sceneWidgets();
private:
void updateSelectionHighlight(std::string sceneNode, const Ogre::Vector3 &position);