- Changing LWO loader's VMAP selection strategy. Unassigned VMAPs (UVs and VColors) are now kept, if possible. Referenced VMAPs have higher priority so everything should be backward compatible.
- assimp_cmd writes vertex colors in 'Colors' elements now. - assimp_cmd writes 'set=' attribute for UVs and vertex colors. - Adding test files for the awesome new LWO capabilities. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@396 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -208,7 +208,6 @@ void LWOImporter::InternReadFile( const std::string& pFile,
|
||||
if (!layer.mFaces.empty() && !layer.mTempPoints.empty()) {
|
||||
|
||||
// now sort all faces by the surfaces assigned to them
|
||||
typedef std::vector<unsigned int> SortedRep;
|
||||
std::vector<SortedRep> pSorted(mSurfaces->size()+1);
|
||||
|
||||
unsigned int i = 0;
|
||||
@@ -271,8 +270,8 @@ void LWOImporter::InternReadFile( const std::string& pFile,
|
||||
vVColorIndices[mui] = 0xffffffff;
|
||||
#endif
|
||||
|
||||
FindUVChannels(_mSurfaces[i],layer,vUVChannelIndices);
|
||||
FindVCChannels(_mSurfaces[i],layer,vVColorIndices);
|
||||
FindUVChannels(_mSurfaces[i],sorted,layer,vUVChannelIndices);
|
||||
FindVCChannels(_mSurfaces[i],sorted,layer,vVColorIndices);
|
||||
|
||||
// allocate storage for UV and CV channels
|
||||
aiVector3D* pvUV[AI_MAX_NUMBER_OF_TEXTURECOORDS];
|
||||
|
||||
Reference in New Issue
Block a user