From 596a4ba7a3fc82d6c588ec916f99d91485096d39 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 17 Feb 2016 03:57:41 +0100 Subject: [PATCH] Fix cfg access --HG-- branch : feature-material-editor --- code/nel/tools/3d/mesh_editor/graphics_viewport.h | 4 ++-- code/nel/tools/3d/mesh_editor/main.cpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/code/nel/tools/3d/mesh_editor/graphics_viewport.h b/code/nel/tools/3d/mesh_editor/graphics_viewport.h index 0419e8d7c..90222c12b 100644 --- a/code/nel/tools/3d/mesh_editor/graphics_viewport.h +++ b/code/nel/tools/3d/mesh_editor/graphics_viewport.h @@ -68,7 +68,7 @@ public: inline NL3D::UDriver *getDriver() { return m_Driver; } inline NL3D::UTextContext *getTextContext() { return m_TextContext; } - inline NL3D::UScene *getScene() { return m_Scene; } + // inline NL3D::UScene *getScene() { return m_Scene; } public slots: void saveScreenshot(); @@ -87,7 +87,7 @@ private: NL3D::UDriver *m_Driver; NL3D::UTextContext *m_TextContext; - NL3D::UScene *m_Scene; + // NL3D::UScene *m_Scene; bool m_Direct3D; diff --git a/code/nel/tools/3d/mesh_editor/main.cpp b/code/nel/tools/3d/mesh_editor/main.cpp index 0d6b8aa5e..a29e8a888 100644 --- a/code/nel/tools/3d/mesh_editor/main.cpp +++ b/code/nel/tools/3d/mesh_editor/main.cpp @@ -113,7 +113,10 @@ sint main(int argc, char **argv) QFile(":/data/andbasr.ttf").copy(QString::fromStdString(localAppData + "andbasr.ttf")); QFile(":/data/mesh_editor_default.cfg").copy(QString::fromStdString(appData + "mesh_editor_default.cfg")); if (!QFileInfo(QString::fromStdString(appData + "mesh_editor.cfg")).exists()) + { QFile(":/data/mesh_editor.cfg").copy(QString::fromStdString(appData + "mesh_editor.cfg")); + CFile::setRWAccess(appData + "mesh_editor.cfg"); + } NLQT::preApplication(); QApplication app(argc, const_cast(argv));