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

Function getChildModelNode

test/ModelExport.cpp:114–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112const Vector4 VertexColour3(0.7, 0.8, 0.9, 0.13);
113
114inline model::ModelNodePtr getChildModelNode(const scene::INodePtr& entity)
115{
116 // Locate the IModel node among the entity's children
117 model::ModelNodePtr model;
118
119 entity->foreachNode([&](const scene::INodePtr& node)
120 {
121 if (Node_isModel(node))
122 {
123 model = Node_getModel(node);
124 }
125 return true;
126 });
127
128 return model;
129}
130
131inline void checkVertexColoursOfExportedModel(const model::IModelExporterPtr& exporter, const std::string& outputPath_)
132{

Callers 2

TEST_FFunction · 0.85

Calls 3

Node_isModelFunction · 0.85
Node_getModelFunction · 0.85
foreachNodeMethod · 0.45

Tested by

no test coverage detected