mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 10:34:41 +00:00
Revert "default vert shading when load new mesh"
This reverts commit ff2acd8c3868efddeee284598107638ee12f4f41.
This commit is contained in:
parent
072ff73e20
commit
1aff3755df
@ -2137,7 +2137,7 @@ bool MainWindow::loadMesh(const QString& fileName, IOPlugin *pCurrentIOPlugin, c
|
||||
return true;
|
||||
}
|
||||
|
||||
void MainWindow::computeRenderingDataOnLoading(MeshModel* mm, bool isareload, MLRenderingData* rendOpt)
|
||||
void MainWindow::computeRenderingDataOnLoading(MeshModel* mm,bool isareload, MLRenderingData* rendOpt)
|
||||
{
|
||||
MultiViewer_Container* mv = currentViewContainer();
|
||||
if (mv != NULL)
|
||||
@ -2146,7 +2146,7 @@ void MainWindow::computeRenderingDataOnLoading(MeshModel* mm, bool isareload, ML
|
||||
if ((shared != NULL) && (mm != NULL))
|
||||
{
|
||||
MLRenderingData defdt;
|
||||
MLPoliciesStandAloneFunctions::suggestedDefaultPerViewRenderingData(mm, defdt, 0);
|
||||
MLPoliciesStandAloneFunctions::suggestedDefaultPerViewRenderingData(mm, defdt,mwsettings.minpolygonpersmoothrendering);
|
||||
if (rendOpt != NULL)
|
||||
defdt = *rendOpt;
|
||||
for (int glarid = 0; glarid < mv->viewerCounter(); ++glarid)
|
||||
@ -3283,7 +3283,7 @@ bool MainWindow::addRenderingDataIfNewlyGeneratedMesh(int meshid)
|
||||
if ((meshDoc()->meshDocStateData().find(meshid) == meshDoc()->meshDocStateData().end()) && (mm != NULL))
|
||||
{
|
||||
MLRenderingData dttoberendered;
|
||||
MLPoliciesStandAloneFunctions::suggestedDefaultPerViewRenderingData(mm, dttoberendered, 0);
|
||||
MLPoliciesStandAloneFunctions::suggestedDefaultPerViewRenderingData(mm, dttoberendered,mwsettings.minpolygonpersmoothrendering);
|
||||
foreach(GLArea* gla, mvc->viewerList)
|
||||
{
|
||||
if (gla != NULL)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user