Skip to content

Commit f95510b

Browse files
authored
Removed multiplication for color_idx_offset
1 parent 94f1dc1 commit f95510b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/obj_sticher/obj_sticher.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ StichObjs(
112112
normal_idx_offset += attributes[i].normals.size() / 3;
113113
std::copy(attributes[i].texcoords.begin(), attributes[i].texcoords.end(), out_attribute.texcoords.begin() + texcoord_idx_offset * 2);
114114
texcoord_idx_offset += attributes[i].texcoords.size() / 2;
115-
std::copy(attributes[i].colors.begin(), attributes[i].colors.end(), out_attribute.colors.begin() + color_idx_offset * 3);
115+
std::copy(attributes[i].colors.begin(), attributes[i].colors.end(), out_attribute.colors.begin() + color_idx_offset);
116116
color_idx_offset += attributes[i].colors.size();
117117
}
118118
}

0 commit comments

Comments
 (0)