|
|
@@ -22,6 +22,7 @@
|
|
|
|
|
|
#include "Precompiled.h"
|
|
|
#include "Deserializer.h"
|
|
|
+#include "Log.h"
|
|
|
#include "Serializer.h"
|
|
|
#include "Skeleton.h"
|
|
|
|
|
|
@@ -114,6 +115,14 @@ void Skeleton::Define(const Skeleton& src)
|
|
|
rootBoneIndex_ = src.rootBoneIndex_;
|
|
|
}
|
|
|
|
|
|
+void Skeleton::SetRootBoneIndex(unsigned index)
|
|
|
+{
|
|
|
+ if (index < bones_.Size())
|
|
|
+ rootBoneIndex_ = index;
|
|
|
+ else
|
|
|
+ LOGERROR("Root bone index out of bounds");
|
|
|
+}
|
|
|
+
|
|
|
void Skeleton::ClearBones()
|
|
|
{
|
|
|
bones_.Clear();
|