Explorar o código

Collada mesh name is copied from id only if there was no name attribute in the <geometry> node.

Sherief Farouk %!s(int64=12) %!d(string=hai) anos
pai
achega
d23430c4bd
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      code/ColladaLoader.cpp

+ 4 - 1
code/ColladaLoader.cpp

@@ -521,7 +521,10 @@ void ColladaLoader::BuildMeshesForNode( const ColladaParser& pParser, const Coll
 
 				// assign the material index
 				dstMesh->mMaterialIndex = matIdx;
-        dstMesh->mName = mid.mMeshOrController;			
+                if(dstMesh->mName.length == 0)
+                {
+                    dstMesh->mName = mid.mMeshOrController;
+                }
       }
 		}
 	}