Changeset 11262 for OpenSceneGraph/trunk/src/osgPlugins/fbx/fbxRMesh.cpp
- Timestamp:
- 03/19/10 21:12:19 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/fbx/fbxRMesh.cpp
r11154 r11262 293 293 const char* szName, 294 294 BindMatrixMap& boneBindMatrices, 295 const std::set<const KFbxNode*>& fbxSkeletons, 295 296 std::map<KFbxNode*, osgAnimation::Skeleton*>& skeletonMap) 296 297 { … … 300 301 pGeode->setName(szName); 301 302 302 const KFbxLayer* pFbxLayer = 0;303 const KFbxLayer* pFbxLayer = fbxMesh->GetLayer(0); 303 304 const KFbxLayerElementNormal* pFbxNormals = 0; 304 305 const KFbxLayerElementUV* pFbxUVs = 0; … … 308 309 const KFbxVector4* pFbxVertices = fbxMesh->GetControlPoints(); 309 310 310 if (pFbxLayer = fbxMesh->GetLayer(0))311 if (pFbxLayer) 311 312 { 312 313 pFbxNormals = pFbxLayer->GetNormals(); … … 615 616 if (pSkin->GetClusterCount()) 616 617 { 617 osgAnimation::Skeleton* pSkeleton = getSkeleton(pSkin->GetCluster(0)->GetLink(), skeletonMap); 618 osgAnimation::Skeleton* pSkeleton = getSkeleton( 619 pSkin->GetCluster(0)->GetLink(), fbxSkeletons, skeletonMap); 618 620 pSkeleton->addChild(pResult); 619 621 return osgDB::ReaderWriter::ReadResult::FILE_LOADED; … … 629 631 std::vector<StateSetContent>& stateSetList, 630 632 BindMatrixMap& boneBindMatrices, 633 const std::set<const KFbxNode*>& fbxSkeletons, 631 634 std::map<KFbxNode*, osgAnimation::Skeleton*>& skeletonMap) 632 635 { … … 639 642 640 643 return readMesh(pSdkManager, pNode, lMesh, pAnimationManager, stateSetList, 641 pNode->GetName(), boneBindMatrices, skeletonMap);642 } 644 pNode->GetName(), boneBindMatrices, fbxSkeletons, skeletonMap); 645 }
