diff options
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx index a1c27c9f5d26..bea38f3ec761 100644 --- a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx +++ b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx @@ -646,9 +646,6 @@ namespace drawinglayer if(bAcceptPair) { - double fTexStart(0.0); - double fTexStop(1.0); - if(bCreateNormals) { impCreateInBetweenNormals(aPolB, aPolA, bSmoothHorizontalNormals); @@ -728,6 +725,8 @@ namespace drawinglayer if(bHasSlant) { + double fTexStart{}; + double fTexStop{}; if(bCreateTextureCoordinates) { fTexStart = fTexHeightPos * fInvTexHeight; @@ -818,6 +817,8 @@ namespace drawinglayer if(bHasSlant) { + double fTexStart{}; + double fTexStop{}; if(bCreateTextureCoordinates) { fTexStart = (fTexHeightPos + aTexHeightArray[a] + aTexHeightArray[(a + 1L) % nLoopCount]) * fInvTexHeight; @@ -839,6 +840,8 @@ namespace drawinglayer } } + double fTexStart{}; + double fTexStop{}; if(bCreateTextureCoordinates) { fTexStart = (fTexHeightPos + aTexHeightArray[a]) * fInvTexHeight; |