Fix error when aligning C_normal column for vertex animation

This commit is contained in:
rdb 2015-06-18 21:21:00 +02:00
parent 6d0e4c2662
commit 458ca5ea41

View File

@ -341,9 +341,9 @@ make_packer() const {
}
return new Packer_color;
case C_normal:
if (get_num_values() != 3) {
if (get_num_values() != 3 && get_num_values() != 4) {
gobj_cat.error()
<< "GeomVertexColumn with contents C_normal must have 3 components!\n";
<< "GeomVertexColumn with contents C_normal must have 3 or 4 components!\n";
}
default:
// Otherwise, we just read it as a generic value.