Ver Fonte

prefab safeties

AzaezelX há 4 anos atrás
pai
commit
68fee78744
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      Engine/source/T3D/prefab.cpp

+ 3 - 0
Engine/source/T3D/prefab.cpp

@@ -71,6 +71,8 @@ Prefab::Prefab()
    mNetFlags.clear(Ghostable);
 
    mTypeMask |= StaticObjectType;
+
+   mFilename = StringTable->EmptyString();
 }
 
 Prefab::~Prefab()
@@ -558,6 +560,7 @@ bool Prefab::buildExportPolyList(ColladaUtils::ExportData* exportData, const Box
 
 void Prefab::getUtilizedAssets(Vector<StringTableEntry>* usedAssetsList)
 {
+   if (!mChildGroup) return;
    Vector<SceneObject*> foundObjects;
    mChildGroup->findObjectByType(foundObjects);