Corrected size of cache of point attributes in PShape3D

This commit is contained in:
codeanticode
2012-01-29 21:04:08 +00:00
parent 7400b7d883
commit 056df405a7
2 changed files with 2 additions and 2 deletions
@@ -2954,7 +2954,7 @@ public class PShape3D extends PShape {
if (modifiedPointAttributes) {
if (root.pointAttributesCache == null) {
root.pointAttributesCache = new VertexCache(3);
root.pointAttributesCache = new VertexCache(2);
}
root.pointAttributesCache.add(root.pointVertCopyOffset, tess.pointVertexCount, tess.pointAttributes);
modifiedPointAttributes = false;
@@ -2978,7 +2978,7 @@ public class PShape3D extends PShape {
if (modifiedPointAttributes) {
if (root.pointAttributesCache == null) {
root.pointAttributesCache = new VertexCache(3);
root.pointAttributesCache = new VertexCache(2);
}
root.pointAttributesCache.add(root.pointVertCopyOffset, tess.pointVertexCount, tess.pointAttributes);
modifiedPointAttributes = false;