fix precision issue within memory copy

This commit is contained in:
Chris Russ
2016-07-18 08:23:46 +10:00
parent 6128987210
commit 4f7b624fe8
3 changed files with 5 additions and 5 deletions

View File

@@ -321,7 +321,7 @@ aiReturn Exporter :: Export( const aiScene* pScene, const char* pFormatId, const
// Always create a full copy of the scene. We might optimize this one day,
// but for now it is the most pragmatic way.
aiScene* scenecopy_tmp;
aiScene* scenecopy_tmp = NULL;
SceneCombiner::CopyScene(&scenecopy_tmp,pScene);
std::unique_ptr<aiScene> scenecopy(scenecopy_tmp);