Showing the changes to interface/src/renderer/GeometryCache.cpp (1 of 18 files). Show all
Unified · Split
| @@ -684,10 +684,10 @@ bool NetworkMeshPart::isTranslucent() const { · 683 unmodified lines | ||
| 684 | 684 | return diffuseTexture && diffuseTexture->isTranslucent(); |
| 685 | 685 | } |
| 686 | 686 | |
| 687 | −int NetworkMesh::getTranslucentPartCount() const { | |
| 687 | +int NetworkMesh::getTranslucentPartCount(const FBXMesh& fbxMesh) const { | |
| 688 | 688 | int count = 0; |
| 689 | − foreach (const NetworkMeshPart& part, parts) { | |
| 690 | − if (part.isTranslucent()) { | |
| 689 | + for (int i = 0; i < parts.size(); i++) { | |
| 690 | + if (parts.at(i).isTranslucent() || fbxMesh.parts.at(i).opacity != 1.0f) { | |
| 691 | 691 | count++; |
| 692 | 692 | } |
| 693 | 693 | } |