Export the skeletons

Not really tested though
This commit is contained in:
FakeShemp
2015-12-15 11:49:59 +01:00
parent 60b3ce89b2
commit 1689370356
4 changed files with 79 additions and 15 deletions
+14
View File
@@ -145,6 +145,7 @@ void Menu::Button1Clicked(bool)
{
if (m_ExportAnimationsButton->isChecked()) {
MGlobal::displayInfo("1 checked!");
this->GetSkeletonData();
}
else {
MGlobal::displayInfo("1 unchecked!");
@@ -185,7 +186,20 @@ void Menu::GetMaterialData()
void Menu::GetSkeletonData()
{
this->m_SkeletonHandler = new Skeleton();
// Traverse scene and return vector with all materials
std::vector<SkeletonNode>* AllMaterials = m_SkeletonHandler->DoIt();
MGlobal::displayInfo(MString() + AllMaterials->size());
for (int i = 0; i < AllMaterials->size(); i++)
{
for (int j = 0; j < AllMaterials->at(i).Joints.size(); j++)
{
MGlobal::displayInfo(MString() + AllMaterials->at(i).Joints.at(j).Name.c_str());
}
}
}
Menu::~Menu()