Skip to content

Commit

Permalink
fix crash in transfer vertex attributes to texture filter
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Jan 7, 2025
1 parent c6e230c commit e242330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/meshlabplugins/filter_texture/filter_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@ void FilterTexturePlugin::transferToTexture(
for (srcTexInd = 0; srcTexInd < numSrcTex; srcTexInd++)
{
srcTextureFileNames[srcTexInd] = srcMesh->cm.textures[srcTexInd].c_str();
srcImgs[srcTexInd] = srcMesh->getTexture(srcMesh->cm.textures[srcTexInd]);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/meshlabplugins/filter_texture/rastering.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ class TransferColorSampler
TransferColorSampler(CMeshO &_srcMesh, std::vector <QImage> &_trgImgs, std::vector <QImage> *_srcImgs, float upperBound)
: trgImgs(_trgImgs), srcImgs(_srcImgs), dist_upper_bound(upperBound)
{
srcMesh=&_srcMesh;
unifGridFace.Set(_srcMesh.face.begin(),_srcMesh.face.end());
markerFunctor.SetMesh(&_srcMesh);
fromTexture = true;
Expand Down

0 comments on commit e242330

Please sign in to comment.