@@ -55,7 +55,7 @@ static void priv_fill_area3_points(
5555 glVertex3f (points [i ].x ,
5656 points [i ].y ,
5757 points [i ].z );
58- if (record_geom ){
58+ if (record_geom && record_geom_fill ){
5959 vertex_indices [n_vertices ] = wsgl_add_vertex (points [i ].x ,
6060 points [i ].y ,
6161 points [i ].z );
@@ -66,7 +66,7 @@ static void priv_fill_area3_points(
6666 n_normals ++ ;
6767 }
6868 }
69- if (record_geom ){
69+ if (record_geom && record_geom_fill ){
7070 wsgl_add_geometry (GEOM_FACE , vertex_indices , normal_indices , n_vertices );
7171 }
7272 glEnd ();
@@ -99,7 +99,7 @@ static void priv_fill_area3_ptcolrs(
9999 glVertex3f (ptcolrs [i ].point .x ,
100100 ptcolrs [i ].point .y ,
101101 ptcolrs [i ].point .z );
102- if (record_geom ){
102+ if (record_geom && record_geom_fill ){
103103 vertex_indices [n_vertices ] = wsgl_add_vertex (ptcolrs [i ].point .x ,
104104 ptcolrs [i ].point .y ,
105105 ptcolrs [i ].point .z );
@@ -110,7 +110,7 @@ static void priv_fill_area3_ptcolrs(
110110 n_normals ++ ;
111111 }
112112 }
113- if (record_geom ){
113+ if (record_geom && record_geom_fill ){
114114 wsgl_add_geometry (GEOM_FACE , vertex_indices , normal_indices , n_vertices );
115115 }
116116 glEnd ();
@@ -143,7 +143,7 @@ static void priv_back_area3_ptcolrs(
143143 glVertex3f (ptcolrs [i ].point .x ,
144144 ptcolrs [i ].point .y ,
145145 ptcolrs [i ].point .z );
146- if (record_geom ){
146+ if (record_geom && record_geom_fill ){
147147 vertex_indices [n_vertices ] = wsgl_add_vertex (ptcolrs [i ].point .x ,
148148 ptcolrs [i ].point .y ,
149149 ptcolrs [i ].point .z );
@@ -154,7 +154,7 @@ static void priv_back_area3_ptcolrs(
154154 n_normals ++ ;
155155 }
156156 }
157- if (record_geom ){
157+ if (record_geom && record_geom_fill ){
158158 wsgl_add_geometry (GEOM_FACE , vertex_indices , normal_indices , n_vertices );
159159 }
160160 glEnd ();
@@ -189,7 +189,7 @@ static void priv_fill_area3_ptnorms(
189189 glVertex3f (ptnorms [i ].point .x ,
190190 ptnorms [i ].point .y ,
191191 ptnorms [i ].point .z );
192- if (record_geom ){
192+ if (record_geom && record_geom_fill ){
193193 vertex_indices [n_vertices ] = wsgl_add_vertex (ptnorms [i ].point .x ,
194194 ptnorms [i ].point .y ,
195195 ptnorms [i ].point .z );
@@ -200,7 +200,7 @@ static void priv_fill_area3_ptnorms(
200200 n_normals ++ ;
201201 }
202202 }
203- if (record_geom ){
203+ if (record_geom && record_geom_fill ){
204204 wsgl_add_geometry (GEOM_FACE , vertex_indices , normal_indices , n_vertices );
205205 }
206206 glEnd ();
@@ -240,7 +240,7 @@ static void priv_fill_area3_ptconorms(
240240 glVertex3f (ptconorms [i ].point .x ,
241241 ptconorms [i ].point .y ,
242242 ptconorms [i ].point .z );
243- if (record_geom ){
243+ if (record_geom && record_geom_fill ){
244244 vertex_indices [n_vertices ] = wsgl_add_vertex (ptconorms [i ].point .x ,
245245 ptconorms [i ].point .y ,
246246 ptconorms [i ].point .z );
@@ -251,7 +251,7 @@ static void priv_fill_area3_ptconorms(
251251 n_normals ++ ;
252252 }
253253 }
254- if (record_geom ){
254+ if (record_geom && record_geom_fill ){
255255 wsgl_add_geometry (GEOM_FACE , vertex_indices , normal_indices , n_vertices );
256256 }
257257 glEnd ();
@@ -291,7 +291,7 @@ static void priv_back_area3_ptconorms(
291291 glVertex3f (ptconorms [i ].point .x ,
292292 ptconorms [i ].point .y ,
293293 ptconorms [i ].point .z );
294- if (record_geom ){
294+ if (record_geom && record_geom_fill ){
295295 vertex_indices [n_vertices ] = wsgl_add_vertex (ptconorms [i ].point .x ,
296296 ptconorms [i ].point .y ,
297297 ptconorms [i ].point .z );
@@ -302,7 +302,7 @@ static void priv_back_area3_ptconorms(
302302 n_normals ++ ;
303303 }
304304 }
305- if (record_geom ){
305+ if (record_geom && record_geom_fill ){
306306 wsgl_add_geometry (GEOM_FACE , vertex_indices , normal_indices , n_vertices );
307307 }
308308 glEnd ();
0 commit comments