Merged from svn/trunk warnings fixes provided by Changeset 12582 from Michael Platings, along with addition
of returns at ends of files and changes to tabs to four spaces.
This commit is contained in:
@@ -147,4 +147,4 @@ WriterCompareTriangle::inWhichBox(const osg::Vec3::value_type x,
|
||||
}
|
||||
}
|
||||
throw "Point is not in any box";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,4 @@ private:
|
||||
std::vector<osg::BoundingBox> boxList;
|
||||
};
|
||||
|
||||
#endif // _3DS_WRITER_COMPARE_TRIANGLE_HEADER__
|
||||
#endif // _3DS_WRITER_COMPARE_TRIANGLE_HEADER__
|
||||
|
||||
@@ -84,7 +84,7 @@ FbxMaterialToOsgStateSet::convert(const KFbxSurfaceMaterial* pFbxMat)
|
||||
if (lTexture)
|
||||
{
|
||||
// support only spherical reflection maps...
|
||||
if (KFbxFileTexture::eUMT_ENVIRONMENT == lTexture->GetMappingType())
|
||||
if (KFbxFileTexture::eUMT_ENVIRONMENT == lTexture->CurrentMappingType.Get())
|
||||
{
|
||||
result.reflectionTexture = fbxTextureToOsgTexture(lTexture);
|
||||
result.reflectionChannel = lTexture->UVSet.Get();
|
||||
@@ -237,4 +237,4 @@ void FbxMaterialToOsgStateSet::checkInvertTransparency()
|
||||
pMaterial->setDiffuse(osg::Material::FRONT_AND_BACK, diffuse);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,4 +97,4 @@ private:
|
||||
};
|
||||
|
||||
|
||||
#endif //FBXMATERIALTOOSGSTATESET_H
|
||||
#endif //FBXMATERIALTOOSGSTATESET_H
|
||||
|
||||
@@ -56,6 +56,8 @@ osgDB::ReaderWriter::ReadResult OsgFbxReader::readFbxLight(KFbxNode* pNode, int&
|
||||
|
||||
switch (fbxLight->DecayType.Get())
|
||||
{
|
||||
case KFbxLight::eNONE:
|
||||
break;
|
||||
case KFbxLight::eLINEAR:
|
||||
osgLight->setLinearAttenuation(fbxDecayStart);
|
||||
break;
|
||||
|
||||
@@ -62,6 +62,8 @@ bool layerElementValid(const KFbxLayerElementTemplate<T>* pLayerElement)
|
||||
case KFbxLayerElement::eDIRECT:
|
||||
case KFbxLayerElement::eINDEX_TO_DIRECT:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -85,6 +87,8 @@ int getVertexIndex(const KFbxLayerElementTemplate<T>* pLayerElement,
|
||||
case KFbxLayerElement::eBY_POLYGON:
|
||||
index = nPolygon;
|
||||
break;
|
||||
default:
|
||||
OSG_WARN << "getVertexIndex: unsupported FBX mapping mode" << std::endl;
|
||||
}
|
||||
|
||||
if (pLayerElement->GetReferenceMode() == KFbxLayerElement::eDIRECT)
|
||||
@@ -107,6 +111,8 @@ int getPolygonIndex(const KFbxLayerElementTemplate<T>* pLayerElement, int nPolyg
|
||||
return nPolygon;
|
||||
case KFbxLayerElement::eINDEX_TO_DIRECT:
|
||||
return pLayerElement->GetIndexArray().GetAt(nPolygon);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -568,6 +568,8 @@ osgDB::ReaderWriter::ReadResult OsgFbxReader::readFbxNode(
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (bEmpty)
|
||||
|
||||
Reference in New Issue
Block a user