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

Method objInSet

Engine/source/gui/worldEditor/worldEditorSelection.cpp:81–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79//-----------------------------------------------------------------------------
80
81bool WorldEditorSelection::objInSet( SimObject* obj )
82{
83 if( !mIsResolvingPIDs )
84 resolvePIDs();
85
86 lock();
87
88 bool result = false;
89 for( iterator iter = begin(); iter != end(); ++ iter )
90 {
91 if( obj == *iter )
92 {
93 result = true;
94 break;
95 }
96
97 WorldEditorSelection* set = dynamic_cast< WorldEditorSelection* >( *iter );
98 if( set && set->objInSet( obj ) )
99 {
100 result = true;
101 break;
102 }
103 }
104
105 unlock();
106
107 return result;
108}
109
110//-----------------------------------------------------------------------------
111

Callers 8

renderScreenObjMethod · 0.80
on3DMouseUpMethod · 0.80
on3DMouseDraggedMethod · 0.80
renderSceneMethod · 0.80
selectObjectMethod · 0.80
unselectObjectMethod · 0.80
addObjectMethod · 0.80

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected