Expanded mesh baking functionality, now supporting baking of LODs and Collision meshes

This commit is contained in:
Areloch 2018-03-01 01:51:18 -06:00
parent e079536122
commit f309b736ca
7 changed files with 1578 additions and 8 deletions

View file

@ -135,6 +135,20 @@ IMPLEMENT_CONOBJECT(TSShapeConstructor);
TSShapeConstructor::TSShapeConstructor()
: mShapePath(""), mLoadingShape(false)
{
mOptions.upAxis = UPAXISTYPE_COUNT;
mOptions.unit = -1.0f;
mOptions.lodType = ColladaUtils::ImportOptions::TrailingNumber;
mOptions.singleDetailSize = 2;
mOptions.matNamePrefix = "";
mOptions.alwaysImport = "";
mOptions.neverImport = String(Con::getVariable("$TSShapeConstructor::neverImport"));
mOptions.alwaysImportMesh = "";
mOptions.neverImportMesh = String(Con::getVariable("$TSShapeConstructor::neverImportMesh"));
mOptions.ignoreNodeScale = false;
mOptions.adjustCenter = false;
mOptions.adjustFloor = false;
mOptions.forceUpdateMaterials = false;
mOptions.useDiffuseNames = false;
mShape = NULL;
}