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

Method hideSelection

Engine/source/gui/worldEditor/worldEditor.cpp:601–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601void WorldEditor::hideSelection(bool hide)
602{
603 Scene* scene = Scene::getRootScene();
604
605 // set server/client objects hide field
606 for(U32 i = 0; i < mSelected->size(); i++)
607 {
608 SceneObject* serverObj = dynamic_cast< SceneObject* >( ( *mSelected )[ i ] );
609 if( !serverObj )
610 continue;
611
612 // Prevent non-mission group objects (i.e. Player) from being hidden.
613 // Otherwise it is difficult to show them again.
614 if(!serverObj->isChildOfGroup(scene))
615 continue;
616
617 hideObject(serverObj, hide);
618 }
619}
620
621void WorldEditor::lockSelection(bool lock)
622{

Callers 1

worldEditor.cppFile · 0.45

Calls 2

isChildOfGroupMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected