From 458ca5ea41f6eec1146ba1f1bc45315c23bd8c7b Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 18 Jun 2015 21:21:00 +0200 Subject: [PATCH] Fix error when aligning C_normal column for vertex animation --- panda/src/gobj/geomVertexColumn.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/gobj/geomVertexColumn.cxx b/panda/src/gobj/geomVertexColumn.cxx index 345e1660d4..55910d7fc7 100644 --- a/panda/src/gobj/geomVertexColumn.cxx +++ b/panda/src/gobj/geomVertexColumn.cxx @@ -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.