MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / setSelected

Method setSelected

Engine/source/console/simObject.cpp:2007–2022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2005//-----------------------------------------------------------------------------
2006
2007void SimObject::setSelected( bool sel )
2008{
2009 if( mFlags.test( Selected ) == sel )
2010 return; // No change.
2011
2012 if( sel )
2013 {
2014 mFlags.set( Selected );
2015 _onSelected();
2016 }
2017 else
2018 {
2019 mFlags.clear( Selected );
2020 _onUnselected();
2021 }
2022}
2023
2024//-----------------------------------------------------------------------------
2025

Callers 15

guiEditor.ed.csFile · 0.45
decalEditorGui.csFile · 0.45
ShapeEditorFunction · 0.45
ShapeEdSelectWindowFunction · 0.45
shapeEditor.ed.csFile · 0.45
ParticleEditorPluginFunction · 0.45
ActionCreateNewEmitterFunction · 0.45
ActionDeleteEmitterFunction · 0.45
ActionCreateNewParticleFunction · 0.45

Calls 3

testMethod · 0.45
setMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected