Skip to content

Commit

Permalink
Merged from svn/trunk warnings fixes provided by Changeset 12582 from…
Browse files Browse the repository at this point in the history
… Michael Platings, along with addition

of returns at ends of files and changes to tabs to four spaces.
  • Loading branch information
robertosfield committed Jun 21, 2011
1 parent f534f81 commit 5d30aef
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/osgPlugins/fbx/WriterCompareTriangle.cpp
Expand Up @@ -147,4 +147,4 @@ WriterCompareTriangle::inWhichBox(const osg::Vec3::value_type x,
}
}
throw "Point is not in any box";
}
}
2 changes: 1 addition & 1 deletion src/osgPlugins/fbx/WriterCompareTriangle.h
Expand Up @@ -48,4 +48,4 @@ class WriterCompareTriangle {
std::vector<osg::BoundingBox> boxList;
};

#endif // _3DS_WRITER_COMPARE_TRIANGLE_HEADER__
#endif // _3DS_WRITER_COMPARE_TRIANGLE_HEADER__
4 changes: 2 additions & 2 deletions src/osgPlugins/fbx/fbxMaterialToOsgStateSet.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -237,4 +237,4 @@ void FbxMaterialToOsgStateSet::checkInvertTransparency()
pMaterial->setDiffuse(osg::Material::FRONT_AND_BACK, diffuse);
}
}
}
}
2 changes: 1 addition & 1 deletion src/osgPlugins/fbx/fbxMaterialToOsgStateSet.h
Expand Up @@ -97,4 +97,4 @@ class FbxMaterialToOsgStateSet
};


#endif //FBXMATERIALTOOSGSTATESET_H
#endif //FBXMATERIALTOOSGSTATESET_H
2 changes: 2 additions & 0 deletions src/osgPlugins/fbx/fbxRLight.cpp
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/osgPlugins/fbx/fbxRMesh.cpp
Expand Up @@ -62,6 +62,8 @@ bool layerElementValid(const KFbxLayerElementTemplate<T>* pLayerElement)
case KFbxLayerElement::eDIRECT:
case KFbxLayerElement::eINDEX_TO_DIRECT:
return true;
default:
break;
}

return false;
Expand All @@ -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)
Expand All @@ -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;
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/osgPlugins/fbx/fbxRNode.cpp
Expand Up @@ -568,6 +568,8 @@ osgDB::ReaderWriter::ReadResult OsgFbxReader::readFbxNode(
}
}
break;
default:
break;
}

if (bEmpty)
Expand Down

0 comments on commit 5d30aef

Please sign in to comment.