فهرست منبع

Merge pull request #3665 from turol/fix-warning

Silence uninitialized variable warning in 3MF importer
Turo Lamminen 4 سال پیش
والد
کامیت
2bac0a6989
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      code/AssetLib/3MF/D3MFImporter.cpp

+ 1 - 1
code/AssetLib/3MF/D3MFImporter.cpp

@@ -427,7 +427,7 @@ private:
                 aiFace face = ReadTriangle(currentNode);
                 faces.push_back(face);
 
-                int pid, p1;
+                int pid = 0, p1;
                 bool hasPid = getNodeAttribute(currentNode, D3MF::XmlTag::pid, pid);
                 bool hasP1 = getNodeAttribute(currentNode, D3MF::XmlTag::p1, p1);