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

Function moveSelectedComponentsTo

test/Selection.cpp:1197–1203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1195}
1196
1197void moveSelectedComponentsTo(const scene::INodePtr& node, const Vector3& direction)
1198{
1199 auto transform = scene::node_cast<ITransformable>(node);
1200 transform->setType(TRANSFORM_COMPONENT);
1201 transform->setTranslation(direction);
1202 transform->freezeTransform();
1203}
1204
1205// Ortho: Cycle through some vertex selection candidates (a patch with three vertices aligned in the view direction z)
1206TEST_F(OrthoViewSelectionTest, CycleVertexSelectionComponentMode)

Callers 1

TEST_FFunction · 0.85

Calls 3

setTypeMethod · 0.45
setTranslationMethod · 0.45
freezeTransformMethod · 0.45

Tested by

no test coverage detected