mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-14 08:34:37 +00:00
- cleaned up internal data when plugin is turned off
This commit is contained in:
parent
0050b87353
commit
0dcce43ebf
@ -304,3 +304,12 @@ bool SampleEditPlugin::StartEdit(MeshModel &/*m*/, GLArea * gla, MLSceneGLShared
|
||||
connect(this, SIGNAL(suspendEditToggle()), gla, SLOT(suspendEditToggle()));
|
||||
return true;
|
||||
}
|
||||
|
||||
void SampleEditPlugin::EndEdit(MeshModel &/*m*/, GLArea * /*parent*/, MLSceneGLSharedDataContext* /*cont*/)
|
||||
{
|
||||
haveToPick = false;
|
||||
pickmode = 0; // 0 face 1 vertex
|
||||
curFacePtr = 0;
|
||||
curVertPtr = 0;
|
||||
pIndex = 0;
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ public:
|
||||
static const QString Info();
|
||||
|
||||
bool StartEdit(MeshModel &/*m*/, GLArea * /*parent*/, MLSceneGLSharedDataContext* /*cont*/);
|
||||
void EndEdit(MeshModel &/*m*/, GLArea * /*parent*/, MLSceneGLSharedDataContext* /*cont*/){};
|
||||
void EndEdit(MeshModel &/*m*/, GLArea * /*parent*/, MLSceneGLSharedDataContext* /*cont*/);
|
||||
void Decorate(MeshModel &/*m*/, GLArea * /*parent*/, QPainter *p);
|
||||
void Decorate (MeshModel &/*m*/, GLArea * ){};
|
||||
void mousePressEvent(QMouseEvent *, MeshModel &, GLArea * ) {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user