summarylogtreecommitdiffstats
path: root/shaders_dir.patch
diff options
context:
space:
mode:
authorbartus2020-05-28 16:06:12 +0200
committerbartus2020-05-30 09:18:26 +0200
commitdcbdc95c5e81a60cd98712ece43efc12d0dffe65 (patch)
tree1844b023dbd36f907f16bbdd42379c527cae71b0 /shaders_dir.patch
parent31e8ecc3797cf78a1c8da32616d574de3138996e (diff)
downloadaur-dcbdc95c5e81a60cd98712ece43efc12d0dffe65.tar.gz
Switch to cmake build system.
Diffstat (limited to 'shaders_dir.patch')
-rw-r--r--shaders_dir.patch89
1 files changed, 0 insertions, 89 deletions
diff --git a/shaders_dir.patch b/shaders_dir.patch
deleted file mode 100644
index 432b15078c57..000000000000
--- a/shaders_dir.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-diff --git a/src/meshlabplugins/render_gdp/meshrender.cpp b/src/meshlabplugins/render_gdp/meshrender.cpp
-index 5841ce66..3e0cbe5e 100644
---- a/src/meshlabplugins/render_gdp/meshrender.cpp
-+++ meshlab/src/meshlabplugins/render_gdp/meshrender.cpp
-@@ -29,6 +29,9 @@
- #include <QTextStream>
- #include "../../meshlab/glarea.h"
-
-+#include <common/pluginmanager.h>
-+
-+
- using namespace std;
- using namespace vcg;
-
-@@ -38,7 +41,7 @@ void MeshShaderRenderPlugin::initActionList() {
- qaNone->setCheckable(false);
- actionList << qaNone;*/
-
-- QDir shadersDir = QDir(qApp->applicationDirPath());
-+ QDir shadersDir = PluginManager::getBaseDirPath();
- #if defined(Q_OS_WIN)
- if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release" || shadersDir.dirName() == "plugins")
- shadersDir.cdUp();
-diff --git a/src/meshlabplugins/render_gdp/shaderDialog.cpp b/src/meshlabplugins/render_gdp/shaderDialog.cpp
-index 13157579..1f14b7bf 100644
---- a/src/meshlabplugins/render_gdp/shaderDialog.cpp
-+++ meshlab/src/meshlabplugins/render_gdp/shaderDialog.cpp
-@@ -32,6 +32,8 @@
- #include <QCheckBox>
- #include <QPushButton>
-
-+#include <common/pluginmanager.h>
-+
- #define DECFACTOR 100000.0f
-
- using namespace vcg;
-@@ -317,7 +319,7 @@ void ShaderDialog::changeTexturePath(int i) {
- void ShaderDialog::browseTexturePath(int i) {
- QFileDialog fd(0,"Choose new texture");
-
-- QDir shadersDir = QDir(qApp->applicationDirPath());
-+ QDir shadersDir = PluginManager::getBaseDirPath();
- #if defined(Q_OS_WIN)
- if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release")
- shadersDir.cdUp();
-diff --git a/src/plugins_experimental/render_splatpyramid/dialog.cpp b/src/plugins_experimental/render_splatpyramid/dialog.cpp
-index 589ba482..f0225c40 100644
---- a/src/plugins_experimental/render_splatpyramid/dialog.cpp
-+++ meshlab/src/plugins_experimental/render_splatpyramid/dialog.cpp
-@@ -3,6 +3,8 @@
- #include <QFileDialog>
- #include <QMessageBox>
-
-+#include <common/pluginmanager.h>
-+
-
- #define DECFACTOR 100000.0f
-
-@@ -123,7 +125,7 @@ void Dialog::changeTexturePath(int i) {
- void Dialog::browseTexturePath(int i) {
- QFileDialog fd(0,"Choose new texture");
-
-- QDir shadersDir = QDir(qApp->applicationDirPath());
-+ QDir shadersDir = PluginManager::getBaseDirPath();
- #if defined(Q_OS_WIN)
- if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release")
- shadersDir.cdUp();
-diff --git a/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc b/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc
-index a4915d10..d6325aa4 100644
---- a/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc
-+++ meshlab/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc
-@@ -18,6 +18,8 @@
- #include <QTextStream>
- #include <wrap/gl/trimesh.h>
-
-+#include <common/pluginmanager.h>
-+
- //#include <QGLFramebufferObject>
-
- //#include "GL/glut.h"
-@@ -85,7 +87,7 @@ void PyramidPointRendererPlugin::Init(QAction *, MeshDocument &md, RenderMode &,
- objects[i].setRendererType( render_mode );
-
- /// Sets the path to the meshlab's shaders directory
-- QDir shadersDir = QDir(qApp->applicationDirPath());
-+ QDir shadersDir = PluginManager::getBaseDirPath();
- #if defined(Q_OS_WIN)
- if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release" || shadersDir.dirName() == "plugins" )
- shadersDir.cdUp();