mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Bugfixes and improvements for the animation component and related asset behavior.
Adds in ability to establish a shape animation asset as being cyclic or blended. Adds functionality for blended animations to integrated into shapeAssets.
This commit is contained in:
parent
cfbdf63cd7
commit
14ae287c0c
6 changed files with 130 additions and 15 deletions
|
|
@ -198,7 +198,7 @@ DefineConsoleFunction( enumColladaForImport, bool, (const char * shapePath, cons
|
|||
for (S32 j = 0; j < libraryMats->getMaterial_array().getCount(); j++)
|
||||
{
|
||||
domMaterial* mat = libraryMats->getMaterial_array()[j];
|
||||
tree->insertItem(matsID, _GetNameOrId(mat), _GetNameOrId(mat), "", 0, 0);
|
||||
tree->insertItem(matsID, _GetNameOrId(mat), "", "", 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -256,5 +256,16 @@ DefineConsoleFunction( enumColladaForImport, bool, (const char * shapePath, cons
|
|||
else
|
||||
tree->setDataField(StringTable->insert("_upAxis"), 0, "Z_AXIS");
|
||||
|
||||
char shapesStr[16];
|
||||
dSprintf(shapesStr, 16, "%i", stats.numMeshes);
|
||||
char materialsStr[16];
|
||||
dSprintf(materialsStr, 16, "%i", stats.numMaterials);
|
||||
char animationsStr[16];
|
||||
dSprintf(animationsStr, 16, "%i", stats.numClips);
|
||||
|
||||
tree->setItemValue(nodesID, StringTable->insert(shapesStr));
|
||||
tree->setItemValue(matsID, StringTable->insert(materialsStr));
|
||||
tree->setItemValue(animsID, StringTable->insert(animationsStr));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue