Browse Source

Fixed a bug in the AMF Importer Postprocessing where metadata would be
incorrectly recorded as having type bool for all entries.

Jared Mulconry 8 years ago
parent
commit
e4d43aa51a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/AMFImporter_Postprocess.cpp

+ 1 - 1
code/AMFImporter_Postprocess.cpp

@@ -352,7 +352,7 @@ void AMFImporter::Postprocess_AddMetadata(const std::list<CAMFImporter_NodeEleme
 
 		for(const CAMFImporter_NodeElement_Metadata& metadata: pMetadataList)
 		{
-			pSceneNode.mMetaData->Set(meta_idx++, metadata.Type, metadata.Value.c_str());
+			pSceneNode.mMetaData->Set(meta_idx++, metadata.Type, aiString(metadata.Value));
 		}
 	}// if(pMetadataList.size() > 0)
 }