瀏覽代碼

Fix Cinema4D Import (#6062)

#5623 broke the Cinema4D import by forgetting to rename a constant. This commit fixes the invalid name.

Co-authored-by: Krishty <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
krishty 6 月之前
父節點
當前提交
cbf279d522
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/AssetLib/C4D/C4DImporter.cpp

+ 1 - 1
code/AssetLib/C4D/C4DImporter.cpp

@@ -64,7 +64,7 @@ namespace {
 
 aiString aiStringFrom(cineware::String const & cinestring) {
     aiString result;
-    cinestring.GetCString(result.data, MAXLEN-1);
+    cinestring.GetCString(result.data, AI_MAXLEN - 1);
     result.length = static_cast<ai_uint32>(cinestring.GetLength());
     return result;
 }