mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
- removed decorator crash
This commit is contained in:
parent
6037502524
commit
d41da93cf4
@ -35,13 +35,12 @@ bool MLDefaultMeshDecorators::updateMeshDecorationData( MeshModel& mesh,const ML
|
||||
if ((!oldvalid) || (!currentvalid))
|
||||
return false;
|
||||
|
||||
if ((currentopts._peredge_edgeboundary_enabled && !oldopts._peredge_edgeboundary_enabled) ||
|
||||
(currentopts._peredge_faceboundary_enabled && !oldopts._peredge_faceboundary_enabled))
|
||||
initBoundaryDecoratorData(mesh,currentopts._peredge_edgeboundary_enabled,currentopts._peredge_faceboundary_enabled);
|
||||
else
|
||||
if ((!currentopts._peredge_edgeboundary_enabled && oldopts._peredge_edgeboundary_enabled) ||
|
||||
(!currentopts._peredge_faceboundary_enabled && oldopts._peredge_faceboundary_enabled))
|
||||
cleanBoundaryDecoratorData(mesh,!currentopts._peredge_edgeboundary_enabled,!currentopts._peredge_faceboundary_enabled);
|
||||
/*the boolean conditions should make the following code lines mutually exclusive.....hopefully*/
|
||||
initBoundaryDecoratorData(mesh,currentopts._peredge_edgeboundary_enabled && !oldopts._peredge_edgeboundary_enabled,
|
||||
currentopts._peredge_faceboundary_enabled && !oldopts._peredge_faceboundary_enabled);
|
||||
cleanBoundaryDecoratorData(mesh,!currentopts._peredge_edgeboundary_enabled && oldopts._peredge_edgeboundary_enabled,
|
||||
!currentopts._peredge_faceboundary_enabled && oldopts._peredge_faceboundary_enabled);
|
||||
|
||||
|
||||
if (currentopts._peredge_edgemanifold_enabled && !oldopts._peredge_edgemanifold_enabled)
|
||||
initNonManifEdgeDecoratorData(mesh);
|
||||
@ -58,8 +57,7 @@ bool MLDefaultMeshDecorators::initMeshDecorationData( MeshModel& m,const MLRende
|
||||
if (!valid)
|
||||
return false;
|
||||
|
||||
if (opts._peredge_edgeboundary_enabled || opts._peredge_faceboundary_enabled)
|
||||
initBoundaryDecoratorData(m,opts._peredge_edgeboundary_enabled,opts._peredge_faceboundary_enabled);
|
||||
initBoundaryDecoratorData(m,opts._peredge_edgeboundary_enabled,opts._peredge_faceboundary_enabled);
|
||||
|
||||
if (opts._peredge_edgemanifold_enabled)
|
||||
initNonManifEdgeDecoratorData(m);
|
||||
|
||||
@ -125,7 +125,6 @@ void MLRenderingToolbar::getCurrentRenderingDataAccordingToGUI( MLRenderingData&
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
MLRenderingSideToolbar::MLRenderingSideToolbar(QWidget* parent /*= NULL*/ )
|
||||
:MLRenderingToolbar(parent)
|
||||
{
|
||||
|
||||
@ -129,6 +129,8 @@ protected slots:
|
||||
virtual void toggle(QAction* act);
|
||||
void extraUpdateRequired(int,MLRenderingAction*);
|
||||
|
||||
//private:
|
||||
// void initGui();
|
||||
|
||||
signals:
|
||||
void updateRenderingDataAccordingToActions(int,const QList<MLRenderingAction*>& acts);
|
||||
@ -181,7 +183,7 @@ signals:
|
||||
void updateRenderingDataAccordingToAction(int,MLRenderingAction*);
|
||||
|
||||
private slots:
|
||||
void toggle(QAction* act);
|
||||
void toggle(QAction*);
|
||||
};
|
||||
|
||||
class MLRenderingParametersFrame : public QFrame
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user