Ver código fonte

Merge pull request #2806 from reload0236/master

Yao Wei Tjong 4 anos atrás
pai
commit
4ae7039c4d
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      Source/Urho3D/Graphics/Drawable.cpp

+ 3 - 3
Source/Urho3D/Graphics/Drawable.cpp

@@ -583,7 +583,7 @@ bool WriteDrawablesToOBJ(const PODVector<Drawable*>& drawables, File* outputFile
                     String output = "f ";
                     if (hasNormals)
                     {
-                        output.AppendWithFormat("%l/%l/%l %l/%l/%l %l/%l/%l",
+                        output.AppendWithFormat("%u/%u/%u %u/%u/%u %u/%u/%u",
                             currentPositionIndex + longIndices[0],
                             currentUVIndex + longIndices[0],
                             currentNormalIndex + longIndices[0],
@@ -597,7 +597,7 @@ bool WriteDrawablesToOBJ(const PODVector<Drawable*>& drawables, File* outputFile
                     else if (hasNormals || hasUV)
                     {
                         unsigned secondTraitIndex = hasNormals ? currentNormalIndex : currentUVIndex;
-                        output.AppendWithFormat("%l%s%l %l%s%l %l%s%l",
+                        output.AppendWithFormat("%u%s%u %u%s%u %u%s%u",
                             currentPositionIndex + longIndices[0],
                             slashCharacter.CString(),
                             secondTraitIndex + longIndices[0],
@@ -610,7 +610,7 @@ bool WriteDrawablesToOBJ(const PODVector<Drawable*>& drawables, File* outputFile
                     }
                     else
                     {
-                        output.AppendWithFormat("%l %l %l",
+                        output.AppendWithFormat("%u %u %u",
                             currentPositionIndex + longIndices[0],
                             currentPositionIndex + longIndices[1],
                             currentPositionIndex + longIndices[2]);