43 |
|
|
44 |
|
switch (mg_entity(av[0])) { |
45 |
|
case MG_E_COLOR: /* get/set color context */ |
46 |
+ |
if (ac > 4) |
47 |
+ |
return(MG_EARGC); |
48 |
|
if (ac == 1) { /* set unnamed color context */ |
49 |
|
c_uncolor = c_dfcolor; |
50 |
|
c_ccolor = &c_uncolor; |
109 |
|
|
110 |
|
switch (mg_entity(av[0])) { |
111 |
|
case MG_E_MATERIAL: /* get/set material context */ |
112 |
+ |
if (ac > 4) |
113 |
+ |
return(MG_EARGC); |
114 |
|
if (ac == 1) { /* set unnamed material context */ |
115 |
|
c_unmaterial = c_dfmaterial; |
116 |
|
c_cmaterial = &c_unmaterial; |
225 |
|
|
226 |
|
switch (mg_entity(av[0])) { |
227 |
|
case MG_E_VERTEX: /* get/set vertex context */ |
228 |
+ |
if (ac > 4) |
229 |
+ |
return(MG_EARGC); |
230 |
|
if (ac == 1) { /* set unnamed vertex context */ |
231 |
|
c_unvertex = c_dfvertex; |
232 |
|
c_cvertex = &c_unvertex; |