mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 00:05:40 +00:00
Expands ScriptAsset behavior to operate as a generic type-settable asset
This commit is contained in:
parent
b6f3c25fea
commit
167f98b767
6 changed files with 50 additions and 4 deletions
|
|
@ -129,6 +129,17 @@ public:
|
|||
mAssetDefinition.mAssetInternal = dAtob( pPropertyValue );
|
||||
return true;
|
||||
}
|
||||
else if (propertyName == assetTypeField)
|
||||
{
|
||||
if (mAssetDefinition.mAssetType == StringTable->insert("ScriptAsset"))
|
||||
{
|
||||
//We're gunna special-casehere.
|
||||
//If it's a ScriptAsset and it defines an AssetType property, we presume
|
||||
//that's the ScriptAsset's special asset type, so we set it here
|
||||
mAssetDefinition.mAssetType = StringTable->insert(pPropertyValue);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Fetch property word count.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue