From cdbf89f14aff9e9c8c182720da30e80943884475 Mon Sep 17 00:00:00 2001 From: Martin Weismann Date: Tue, 24 Apr 2018 15:40:48 +0200 Subject: [PATCH] Fix SDK-example: slices --- SDK/Examples/Source/Slice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDK/Examples/Source/Slice.cpp b/SDK/Examples/Source/Slice.cpp index 552b833e9..d3125810d 100644 --- a/SDK/Examples/Source/Slice.cpp +++ b/SDK/Examples/Source/Slice.cpp @@ -145,7 +145,7 @@ int main() // Now add 10 slices ... for (int i = 0; i < 10; i++) { - float fTopZ = ((float)i) / 10.0f; + float fTopZ = ((float)(i+1)) / 10.0f; CustomLib3MFBase pSlice; DWORD nPolyIndex, nVertexIndex;