fixed Smartblend bug under windows

This commit is contained in:
Paolo Cignoni cignoni 2009-04-03 09:53:29 +00:00
parent 5df896128e
commit b2f6982fc4
3 changed files with 16 additions and 2 deletions

View File

@ -1015,3 +1015,8 @@ void PhotoTexturer::calculateZBuffer(MeshModel *mm,Camera* camera,QuadTreeNode *
}
}
void PhotoTexturer::reset(){
}

View File

@ -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:

View File

@ -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()";