MCPcopy Create free account
hub / github.com/SpartanJ/eepp / removeAllActionsFromTarget

Method removeAllActionsFromTarget

src/eepp/scene/actionmanager.cpp:252–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252bool ActionManager::removeAllActionsFromTarget( Node* target ) {
253 std::vector<Action*> removeList;
254
255 {
256 Lock l( mMutex );
257 for ( auto it = mActions.begin(); it != mActions.end(); ++it ) {
258 Action* action = *it;
259
260 if ( action->getTarget() == target ) {
261 removeList.emplace_back( *it );
262 }
263 }
264 }
265
266 for ( auto it = removeList.begin(); it != removeList.end(); ++it )
267 removeAction( *it );
268
269 return !removeList.empty();
270}
271
272}} // namespace EE::Scene

Callers 2

~NodeMethod · 0.80
clearActionsMethod · 0.80

Calls 4

getTargetMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected