[cgkit-commits] SF.net SVN: cgkit: [198] cgkit/trunk/supportlib/include/primvaraccess.h
Brought to you by:
mbaas
From: <mb...@us...> - 2006-12-12 22:56:49
|
Revision: 198 http://svn.sourceforge.net/cgkit/?rev=198&view=rev Author: mbaas Date: 2006-12-12 14:56:46 -0800 (Tue, 12 Dec 2006) Log Message: ----------- Bugfix: The last modification introduced a bug which showed when rendering trimeshes that contained the var/varfaces combination (e.g. for the normals). Modified Paths: -------------- cgkit/trunk/supportlib/include/primvaraccess.h Modified: cgkit/trunk/supportlib/include/primvaraccess.h =================================================================== --- cgkit/trunk/supportlib/include/primvaraccess.h 2006-12-11 15:51:14 UTC (rev 197) +++ cgkit/trunk/supportlib/include/primvaraccess.h 2006-12-12 22:56:46 UTC (rev 198) @@ -236,6 +236,10 @@ if (info->storage==UNIFORM && info->multiplicity==3 && trimesh_flag) { + // Multiply the varfaces size with 3 because of its multiplicity + // (i.e. there are 3 times more elements in the array than + // reported by the size) + varfaces_size *= 3; mode = 5; } else if (info->storage==FACEVARYING && info->multiplicity==1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |