mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
add "docsURL" filter to assignFieldsFrom to prevent it from triggering opening web pages when inheriting values
This commit is contained in:
parent
f5a34308f9
commit
1b33b01eb1
15 changed files with 18 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ bool SimObject::processArguments(S32 argc, ConsoleValue *argv)
|
|||
|
||||
void SimObject::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Ungrouped" );
|
||||
|
||||
addProtectedField( "name", TypeName, Offset(mObjectName, SimObject), &setProtectedName, &defaultProtectedGetFn,
|
||||
|
|
@ -913,6 +914,9 @@ void SimObject::assignFieldsFrom(SimObject *parent)
|
|||
{
|
||||
const AbstractClassRep::Field* f = &list[i];
|
||||
|
||||
if (f->pFieldname == StringTable->insert("docsURL"))
|
||||
continue;
|
||||
|
||||
// Skip the special field types.
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField )
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue