| 80 | } |
| 81 | |
| 82 | inline std::function<bool(const scene::INodePtr&)> patchHasMaterial(const std::string& material) |
| 83 | { |
| 84 | return [material](const scene::INodePtr& node) { return Node_isPatch(node) && Node_getIPatch(node)->getShader() == material; }; |
| 85 | } |
| 86 | |
| 87 | // Finds the first matching child brush of the given parent node, with any of the brush's faces matching the given material |
| 88 | inline scene::INodePtr findFirstBrushWithMaterial(const scene::INodePtr& parent, const std::string& material) |
no test coverage detected