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

Method copySelection

Engine/source/gui/worldEditor/worldEditor.cpp:436–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436bool WorldEditor::copySelection(Selection* sel)
437{
438 mCopyBuffer.clear();
439
440 for( U32 i = 0; i < sel->size(); i++ )
441 {
442 mCopyBuffer.increment();
443 mCopyBuffer.last().save( ( *sel )[i] );
444 }
445
446 return true;
447}
448
449bool WorldEditor::pasteSelection( bool dropSel )
450{

Callers

nothing calls this directly

Calls 5

incrementMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45
saveMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected