| 296 | } |
| 297 | |
| 298 | bool TSShape::needsBufferUpdate() |
| 299 | { |
| 300 | // No buffer? definitely need an update! |
| 301 | if (mVertexSize == 0 || mShapeVertexData.size == 0) |
| 302 | return true; |
| 303 | |
| 304 | // Check if we have modified vertex data |
| 305 | for (Vector<TSMesh*>::iterator iter = meshes.begin(); iter != meshes.end(); iter++) |
| 306 | { |
| 307 | TSMesh *mesh = *iter; |
| 308 | if (!mesh || |
| 309 | (mesh->getMeshType() != TSMesh::StandardMeshType && |
| 310 | mesh->getMeshType() != TSMesh::SkinMeshType)) |
| 311 | continue; |
| 312 | |
| 313 | // NOTE: cant use mVertexData.isReady since that might not be init'd at this stage |
| 314 | if (mesh->mVertSize == 0) |
| 315 | return true; |
| 316 | } |
| 317 | |
| 318 | return false; |
| 319 | } |
| 320 | |
| 321 | TSMesh* TSShape::findMesh(const String& meshName) |
| 322 | { |
nothing calls this directly
no test coverage detected