@@ -3056,6 +3056,7 @@ public void bezierVertex(float x2, float y2, float z2,
30563056 protected void bezierVertexImpl (float x2 , float y2 , float z2 ,
30573057 float x3 , float y3 , float z3 ,
30583058 float x4 , float y4 , float z4 ) {
3059+ bezierVertexCheck (shape , inGeo .vertexCount );
30593060 inGeo .setMaterial (fillColor , strokeColor , strokeWeight ,
30603061 ambientColor , specularColor , emissiveColor , shininess );
30613062 inGeo .setNormal (normalX , normalY , normalZ );
@@ -3083,6 +3084,7 @@ public void quadraticVertex(float cx, float cy, float cz,
30833084
30843085 protected void quadraticVertexImpl (float cx , float cy , float cz ,
30853086 float x3 , float y3 , float z3 ) {
3087+ bezierVertexCheck (shape , inGeo .vertexCount );
30863088 inGeo .setMaterial (fillColor , strokeColor , strokeWeight ,
30873089 ambientColor , specularColor , emissiveColor , shininess );
30883090 inGeo .setNormal (normalX , normalY , normalZ );
@@ -3109,6 +3111,7 @@ public void curveVertex(float x, float y, float z) {
31093111
31103112
31113113 protected void curveVertexImpl (float x , float y , float z ) {
3114+ curveVertexCheck (shape );
31123115 inGeo .setMaterial (fillColor , strokeColor , strokeWeight ,
31133116 ambientColor , specularColor , emissiveColor , shininess );
31143117 inGeo .setNormal (normalX , normalY , normalZ );
@@ -11582,7 +11585,7 @@ void addBezierVertex(int i) {
1158211585 void addQuadraticVertex (int i ) {
1158311586 pg .curveVertexCount = 0 ;
1158411587 pg .bezierInitCheck ();
11585- pg .bezierVertexCheck (pg . shape , i );
11588+ pg .bezierVertexCheck (POLYGON , i );
1158611589
1158711590 PMatrix3D draw = pg .bezierDrawMatrix ;
1158811591
0 commit comments