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

Method ignoreObjClass

Engine/source/gui/worldEditor/worldEditor.cpp:2867–2883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2865// These methods are needed for the console interfaces.
2866
2867void WorldEditor::ignoreObjClass( U32 argc, ConsoleValue *argv )
2868{
2869 for(S32 i = 2; i < argc; i++)
2870 {
2871 ClassInfo::Entry * entry = getClassEntry(argv[i].getString());
2872 if(entry)
2873 entry->mIgnoreCollision = true;
2874 else
2875 {
2876 entry = new ClassInfo::Entry;
2877 entry->mName = StringTable->insert(argv[i].getString());
2878 entry->mIgnoreCollision = true;
2879 if(!addClassEntry(entry))
2880 delete entry;
2881 }
2882 }
2883}
2884
2885void WorldEditor::clearIgnoreList()
2886{

Callers 1

Calls 2

getStringMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected