mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-15 00:54:38 +00:00
small fix texture defrag
This commit is contained in:
parent
26da4e6495
commit
89ba5966e8
@ -168,7 +168,7 @@ void MeshModel::updateDataMask()
|
||||
currentDataMask |= MM_WEDGTEXCOORD;
|
||||
}
|
||||
|
||||
void MeshModel::updateDataMask(MeshModel *m)
|
||||
void MeshModel::updateDataMask(const MeshModel *m)
|
||||
{
|
||||
updateDataMask(m->currentDataMask);
|
||||
}
|
||||
|
||||
@ -222,7 +222,7 @@ public:
|
||||
|
||||
bool hasDataMask(const int maskToBeTested) const;
|
||||
void updateDataMask();
|
||||
void updateDataMask(MeshModel *m);
|
||||
void updateDataMask(const MeshModel* m);
|
||||
void updateDataMask(int neededDataMask);
|
||||
void clearDataMask(int unneededDataMask);
|
||||
int dataMask() const;
|
||||
|
||||
@ -197,15 +197,12 @@ std::map<std::string, QVariant> FilterTextureDefragPlugin::applyFilter(
|
||||
unsigned int& /*postConditionMask*/,
|
||||
CallBackPos *cb)
|
||||
{
|
||||
MeshModel ¤tModel = *(md.mm());
|
||||
const MeshModel ¤tModel = *(md.mm());
|
||||
switch(ID(filter)) {
|
||||
case FP_TEXTURE_DEFRAG:
|
||||
{
|
||||
MeshModel& mm = *(md.addNewMesh("", "texdefrag_" + currentModel.label(), false));
|
||||
MeshModel& mm = *(md.addNewMesh(md.mm()->cm, "texdefrag_" + currentModel.label()));
|
||||
mm.updateDataMask(¤tModel);
|
||||
tri::Append<CMeshO, CMeshO>::Mesh(mm.cm, currentModel.cm);
|
||||
mm.UpdateBoxAndNormals();
|
||||
mm.cm.Tr = currentModel.cm.Tr;
|
||||
|
||||
GLExtensionsManager::initializeGLextensions();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user