fix is3D/set3D mixup, add getVertexCount() warning

This commit is contained in:
Ben Fry
2014-11-16 10:12:31 -07:00
parent 6f803fecfd
commit 60ec10bf53
6 changed files with 30 additions and 9 deletions

View File

@@ -191,7 +191,7 @@ public class PGraphics3D extends PGraphicsOpenGL {
} else if (type == PShape.GEOMETRY) {
shape = new PShapeOpenGL(pg, PShape.GEOMETRY);
}
shape.is3D(true);
shape.set3D(true);
return shape;
}
@@ -272,7 +272,7 @@ public class PGraphics3D extends PGraphicsOpenGL {
shape.setParams(p);
}
shape.is3D(true);
shape.set3D(true);
return shape;
}
}