Alembic: Fix compiler error on Windows
authorSybren A. Stüvel <sybren@blender.org>
Thu, 19 Sep 2019 15:10:50 +0000 (17:10 +0200)
committerSybren A. Stüvel <sybren@blender.org>
Thu, 19 Sep 2019 15:10:50 +0000 (17:10 +0200)
Error was introduced in 34143e45104b.

source/blender/alembic/intern/abc_archive.cc

index 08aa02977f4f8f79af94e10f52dd4db6bb164dae..bb527c23b2076c87ffabf242286634668b74677a 100644 (file)
@@ -107,7 +107,7 @@ ArchiveReader::ArchiveReader(struct Main *bmain, const char *filename)
 
 #ifdef WIN32
   UTF16_ENCODE(abs_filename);
-  std::wstring wstr(filename_16);
+  std::wstring wstr(abs_filename_16);
   m_infile.open(wstr.c_str(), std::ios::in | std::ios::binary);
   UTF16_UN_ENCODE(abs_filename);
 #else