mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Corrected size of cache of point attributes in PShape3D
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user