Cleanup of export function to remove redundant arg

Removed unused var
Cleaned up collision export on convexShape
Added prefab export functionality
This commit is contained in:
Areloch 2018-03-04 16:03:39 -06:00
parent 501a322435
commit 43ca2c5bc2
9 changed files with 23 additions and 13 deletions

View file

@ -538,6 +538,19 @@ bool Prefab::buildPolyList(PolyListContext context, AbstractPolyList* polyList,
return true;
}
bool Prefab::buildExportPolyList(ColladaUtils::ExportData* exportData, const Box3F &box, const SphereF &sphere)
{
Vector<SceneObject*> foundObjects;
mChildGroup->findObjectByType(foundObjects);
for (S32 i = 0; i < foundObjects.size(); i++)
{
foundObjects[i]->buildExportPolyList(exportData, box, sphere);
}
return true;
}
ExplodePrefabUndoAction::ExplodePrefabUndoAction( Prefab *prefab )
: UndoAction( "Explode Prefab" )
{