MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / patchHasMaterial

Function patchHasMaterial

test/algorithm/Scene.h:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82inline 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
88inline scene::INodePtr findFirstBrushWithMaterial(const scene::INodePtr& parent, const std::string& material)

Callers 2

TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 3

Node_isPatchFunction · 0.85
Node_getIPatchFunction · 0.85
getShaderMethod · 0.80

Tested by

no test coverage detected