mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
ModuleSystem: Lookup CInterface methods when calling module create func
This commit is contained in:
parent
68b6884665
commit
fe09d6e125
2 changed files with 15 additions and 10 deletions
|
|
@ -42,6 +42,7 @@
|
|||
#include "persistence/taml/tamlCustom.h"
|
||||
|
||||
#include "sim/netObject.h"
|
||||
#include "cinterface/cinterface.h"
|
||||
|
||||
IMPLEMENT_CONOBJECT( SimObject );
|
||||
|
||||
|
|
@ -831,6 +832,10 @@ bool SimObject::isMethod( const char* methodName )
|
|||
if( !methodName || !methodName[0] )
|
||||
return false;
|
||||
|
||||
if (CInterface::isMethod(this->getName(), methodName) || CInterface::isMethod(this->getClassName(), methodName)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
StringTableEntry stname = StringTable->insert( methodName );
|
||||
|
||||
if( getNamespace() )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue