| 67 | {} |
| 68 | |
| 69 | bool MaterialFilter::modelIncluded(const Material& material) const |
| 70 | { |
| 71 | if (_requirePhysical) { |
| 72 | if (!material.hasPhysicalProperties()) { |
| 73 | return false; |
| 74 | } |
| 75 | } |
| 76 | if (_requireAppearance) { |
| 77 | if (!material.hasAppearanceProperties()) { |
| 78 | return false; |
| 79 | } |
| 80 | } |
| 81 | for (const auto& complete : _requiredComplete) { |
| 82 | if (!material.isModelComplete(complete)) { |
| 83 | return false; |
| 84 | } |
| 85 | } |
| 86 | for (const auto& required : _required) { |
| 87 | if (!material.hasModel(required)) { |
| 88 | return false; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | return true; |
| 93 | } |
| 94 | |
| 95 | bool MaterialFilter::modelIncluded(const QString& uuid) const |
| 96 | { |
no test coverage detected