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

Function forEachTransformable

libs/transformlib.h:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 */
35template<typename Func>
36void forEachTransformable(const INode& node, Func functor)
37{
38 node.foreachNode(
39 [&](const scene::INodePtr& child) -> bool
40 {
41 ITransformablePtr transformable = scene::node_cast<ITransformable>(child);
42 if (transformable)
43 functor(*transformable);
44
45 return true;
46 }
47 );
48}
49}

Callers 5

rotateMethod · 0.85
scaleMethod · 0.85
translateChildrenMethod · 0.85

Calls 1

foreachNodeMethod · 0.45

Tested by

no test coverage detected