Removed a unused toolbalr (permeshrendering toolbar???) global

Found while searching the horrible mess of the toolbar to get rid of a black box that sometime appears on osx...
This commit is contained in:
Paolo Cignoni 2018-04-10 23:27:06 +02:00
parent 77fa4859ce
commit 080fd7b17c
2 changed files with 4 additions and 4 deletions

View File

@ -72,8 +72,8 @@ public:
std::ptrdiff_t maxgpumem;
inline static QString maximumDedicatedGPUMem() {return "MeshLab::System::maxGPUMemDedicatedToGeometry";}
bool permeshtoolbar;
inline static QString perMeshRenderingToolBar() {return "MeshLab::GUI::perMeshToolBar";}
// bool permeshtoolbar;
// inline static QString perMeshRenderingToolBar() {return "MeshLab::GUI::perMeshToolBar";}
bool highprecision;
inline static QString highPrecisionRendering() {return "MeshLab::System::highPrecisionRendering";}

View File

@ -1248,7 +1248,7 @@ void MainWindowSetting::initGlobalParameterSet(RichParameterSet* glbset)
glbset->addParam(new RichInt(perBatchPrimitives(), 100000, "Per batch primitives loaded in GPU", "Per batch primitives (vertices and faces) loaded in the GPU memory. It's used in order to do not overwhelm the system memory with an entire temporary copy of a mesh."));
glbset->addParam(new RichInt(minPolygonNumberPerSmoothRendering(), 50000, "Default Face number per smooth rendering", "Minimum number of faces in order to automatically render a newly created mesh layer with the per vertex normal attribute activated."));
glbset->addParam(new RichBool(perMeshRenderingToolBar(), true, "Show Per-Mesh Rendering Side ToolBar", "If true the per-mesh rendering side toolbar will be redendered inside the layerdialog."));
// glbset->addParam(new RichBool(perMeshRenderingToolBar(), true, "Show Per-Mesh Rendering Side ToolBar", "If true the per-mesh rendering side toolbar will be redendered inside the layerdialog."));
if (MeshLabScalarTest<Scalarm>::doublePrecision())
glbset->addParam(new RichBool(highPrecisionRendering(), false, "High Precision Rendering", "If true all the models in the scene will be rendered at the center of the world"));
@ -1260,7 +1260,7 @@ void MainWindowSetting::updateGlobalParameterSet(RichParameterSet& rps)
maxgpumem = (std::ptrdiff_t)rps.getInt(maximumDedicatedGPUMem()) * (float)(1024 * 1024);
perbatchprimitives = (size_t)rps.getInt(perBatchPrimitives());
minpolygonpersmoothrendering = (size_t)rps.getInt(minPolygonNumberPerSmoothRendering());
permeshtoolbar = rps.getBool(perMeshRenderingToolBar());
// permeshtoolbar = rps.getBool(perMeshRenderingToolBar());
highprecision = false;
if (MeshLabScalarTest<Scalarm>::doublePrecision())
highprecision = rps.getBool(highPrecisionRendering());