MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setPathScale

Method setPathScale

Engine/source/Verve/VPath/VPathEditor.cpp:761–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761void VPathEditor::setPathScale( const VectorF &pScale )
762{
763 // Fetch Paths.
764 VPath *serverPath = mSelection.Path;
765 VPath *clientPath = getClientPath( serverPath );
766
767 // Fetch Current Scale.
768 VectorF scale = serverPath->getScale();
769 scale.convolve( pScale );
770
771 // Update Scale.
772 serverPath->setScale( scale );
773 clientPath->setScale( scale );
774
775 // Update Selection.
776 updateSelection();
777}
778
779//-----------------------------------------------------------------------------
780//

Callers

nothing calls this directly

Calls 3

getScaleMethod · 0.45
convolveMethod · 0.45
setScaleMethod · 0.45

Tested by

no test coverage detected