This commit is contained in:
Marco Di Benedetto 2010-05-22 19:47:43 +00:00
parent 13f0066cfa
commit 0fc8a49a51
2 changed files with 5 additions and 0 deletions

View File

@ -589,6 +589,9 @@ bool HasVFAdjacency (const TriMesh < ContainerType0 , ContainerType1, Containe
// for the macro assert
bool a1 = TriMesh < ContainerType0 , ContainerType1, ContainerType2, ContainerType3>::FaceContainer::value_type::HasVFAdjacency();
bool a2 = TriMesh < ContainerType0 , ContainerType1, ContainerType2, ContainerType3>::VertContainer::value_type::HasVFAdjacency();
// a1 and a2 are still evaluated but not referenced, this causes a warning
(void)a1;
(void)a2;
assert(a1==a2);
return TriMesh < ContainerType0 , ContainerType1, ContainerType2, ContainerType3>::FaceContainer::value_type::HasVFAdjacency();
}

View File

@ -422,6 +422,8 @@ namespace io {
static int LoadControllerMesh(ColladaMesh& m, InfoDAE& info, const QDomElement& geo,QMap<QString, QString> materialBindingMap, CallBackPos *cb=0)
{
(void)cb;
assert(geo.tagName() == "controller");
QDomNodeList skinList = geo.toElement().elementsByTagName("skin");
if(skinList.size()!=1) return E_CANTOPEN;