| 319 | |
| 320 | |
| 321 | void CustomMeshFace::write(MeshObstacle* mesh) const { |
| 322 | const BzMaterial* matref = MATERIALMGR.addMaterial(&material); |
| 323 | |
| 324 | // does this face need special data? |
| 325 | const MeshFace::SpecialData* sd = NULL; |
| 326 | if ((specialData.baseTeam >= 0) || |
| 327 | !specialData.linkName.empty() || |
| 328 | !specialData.zoneParams.empty()) { |
| 329 | sd = &specialData; |
| 330 | } |
| 331 | |
| 332 | mesh->addFace(vertices, normals, texcoords, matref, phydrv, |
| 333 | noclusters, smoothBounce, |
| 334 | driveThrough, shootThrough, ricochet, |
| 335 | true /* triangulate if required */, sd); |
| 336 | return; |
| 337 | } |
| 338 | |
| 339 | |
| 340 | // Local Variables: *** |
no test coverage detected