mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Add missing call to CInterface::IsMethod
This commit is contained in:
parent
97edf1ae34
commit
55f459cf2d
1 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
||||||
#include "console/consoleFunctions.h"
|
#include "console/consoleFunctions.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "cinterface/cinterface.h"
|
||||||
#include "core/strings/findMatch.h"
|
#include "core/strings/findMatch.h"
|
||||||
#include "core/strings/stringUnit.h"
|
#include "core/strings/stringUnit.h"
|
||||||
#include "core/strings/unicode.h"
|
#include "core/strings/unicode.h"
|
||||||
|
|
@ -2426,6 +2427,10 @@ DefineEngineFunction( isMethod, bool, ( const char* nameSpace, const char* metho
|
||||||
"@return True if the method exists, false if not\n"
|
"@return True if the method exists, false if not\n"
|
||||||
"@ingroup Scripting\n")
|
"@ingroup Scripting\n")
|
||||||
{
|
{
|
||||||
|
if (CInterface::isMethod(nameSpace, method)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
Namespace* ns = Namespace::find( StringTable->insert( nameSpace ) );
|
Namespace* ns = Namespace::find( StringTable->insert( nameSpace ) );
|
||||||
Namespace::Entry* nse = ns->lookup( StringTable->insert( method ) );
|
Namespace::Entry* nse = ns->lookup( StringTable->insert( method ) );
|
||||||
if( !nse )
|
if( !nse )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue