mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
fixed Smartblend bug under windows
This commit is contained in:
parent
5df896128e
commit
b2f6982fc4
@ -1015,3 +1015,8 @@ void PhotoTexturer::calculateZBuffer(MeshModel *mm,Camera* camera,QuadTreeNode *
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void PhotoTexturer::reset(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -157,6 +157,7 @@ public:
|
||||
|
||||
QImage mergeTextureImagesWinnerTakesAll(int imgWidth, int imgHeight, QList<QImage> imgList);
|
||||
|
||||
void reset();
|
||||
|
||||
void calculateZBuffer(MeshModel *mm, Camera* camera, QuadTreeNode *qtree, TextureFilterZB *zbuffer);
|
||||
private:
|
||||
|
||||
@ -27,15 +27,23 @@
|
||||
SmartBlendTextureMerger::SmartBlendTextureMerger(QString command){
|
||||
normalized = false;
|
||||
|
||||
command = command.replace(" ","\\ ");
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
cmd = command;
|
||||
if (command.indexOf("\"")==0 && command.lastIndexOf("\"")== command.size()){
|
||||
cmd = command;
|
||||
}else{
|
||||
cmd = "\"" + command + "\"";
|
||||
}
|
||||
|
||||
|
||||
|
||||
#else
|
||||
command = command.replace(" ","\\ ");
|
||||
cmd ="wine "+command;
|
||||
#endif
|
||||
|
||||
qDebug()<<"cmd: "<<cmd;
|
||||
}
|
||||
SmartBlendTextureMerger::~SmartBlendTextureMerger(){
|
||||
qDebug()<<"TextureMerger::~TextureMerger()";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user