mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
prefab safeties
This commit is contained in:
parent
2e68f56b59
commit
68fee78744
1 changed files with 3 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ Prefab::Prefab()
|
||||||
mNetFlags.clear(Ghostable);
|
mNetFlags.clear(Ghostable);
|
||||||
|
|
||||||
mTypeMask |= StaticObjectType;
|
mTypeMask |= StaticObjectType;
|
||||||
|
|
||||||
|
mFilename = StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
Prefab::~Prefab()
|
Prefab::~Prefab()
|
||||||
|
|
@ -558,6 +560,7 @@ bool Prefab::buildExportPolyList(ColladaUtils::ExportData* exportData, const Box
|
||||||
|
|
||||||
void Prefab::getUtilizedAssets(Vector<StringTableEntry>* usedAssetsList)
|
void Prefab::getUtilizedAssets(Vector<StringTableEntry>* usedAssetsList)
|
||||||
{
|
{
|
||||||
|
if (!mChildGroup) return;
|
||||||
Vector<SceneObject*> foundObjects;
|
Vector<SceneObject*> foundObjects;
|
||||||
mChildGroup->findObjectByType(foundObjects);
|
mChildGroup->findObjectByType(foundObjects);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue