From f4565b329ac28097b930fe5c220a833a650ecaac Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Sat, 11 May 2013 15:37:06 -0700 Subject: [PATCH] lengthOfVoxelData already includes the length of the color data. --- libraries/shared/src/SharedUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/shared/src/SharedUtil.cpp b/libraries/shared/src/SharedUtil.cpp index 1ba8e8ddef..0c399faf6c 100644 --- a/libraries/shared/src/SharedUtil.cpp +++ b/libraries/shared/src/SharedUtil.cpp @@ -197,8 +197,8 @@ bool createVoxelEditMessage(unsigned char command, short int sequence, } else { // add it to our message memcpy(copyAt,voxelData,lengthOfVoxelData); - copyAt+=lengthOfVoxelData+SIZE_OF_COLOR_DATA; - actualMessageSize+=lengthOfVoxelData+SIZE_OF_COLOR_DATA; + copyAt+=lengthOfVoxelData; + actualMessageSize+=lengthOfVoxelData; } // cleanup delete voxelData;