From f95510b04b949fa0865f3e86114787073fd0824b Mon Sep 17 00:00:00 2001 From: LZaw <28070263+LZaw@users.noreply.github.com> Date: Fri, 9 Mar 2018 13:57:18 +0100 Subject: [PATCH] Removed multiplication for color_idx_offset --- examples/obj_sticher/obj_sticher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/obj_sticher/obj_sticher.cc b/examples/obj_sticher/obj_sticher.cc index 9032722..47c06eb 100644 --- a/examples/obj_sticher/obj_sticher.cc +++ b/examples/obj_sticher/obj_sticher.cc @@ -112,7 +112,7 @@ StichObjs( normal_idx_offset += attributes[i].normals.size() / 3; std::copy(attributes[i].texcoords.begin(), attributes[i].texcoords.end(), out_attribute.texcoords.begin() + texcoord_idx_offset * 2); texcoord_idx_offset += attributes[i].texcoords.size() / 2; - std::copy(attributes[i].colors.begin(), attributes[i].colors.end(), out_attribute.colors.begin() + color_idx_offset * 3); + std::copy(attributes[i].colors.begin(), attributes[i].colors.end(), out_attribute.colors.begin() + color_idx_offset); color_idx_offset += attributes[i].colors.size(); } }