From bc210a9db7470579a5f071259a282b808f4ccff2 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Mon, 11 May 2009 15:25:06 +0000 Subject: [PATCH] patch for mac texture loading --- wrap/io_trimesh/import_dae.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wrap/io_trimesh/import_dae.h b/wrap/io_trimesh/import_dae.h index 2fa84365..b060e235 100644 --- a/wrap/io_trimesh/import_dae.h +++ b/wrap/io_trimesh/import_dae.h @@ -554,7 +554,12 @@ class ColladaMesh : public vcg::tri::TriMesh< std::vector, std QDomNodeList nlst = txlst.at(0).childNodes().at(img).toElement().elementsByTagName("init_from"); if (nlst.size() > 0) { - texturefile.push_back(nlst.at(0).firstChild().nodeValue()); + QString texname = nlst.at(0).firstChild().nodeValue(); + + if (!texname.isNull() && texname.at(0) != '/') + texname.insert(0,"./"); + + texturefile.push_back(texname); } } }