mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
readable .vb format
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include"animation.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace vb01{
|
||||
Animation::Animation(string name){
|
||||
this->name=name;
|
||||
}
|
||||
|
||||
Animation::~Animation(){
|
||||
}
|
||||
|
||||
void Animation::update(){
|
||||
}
|
||||
|
||||
Animation::KeyframeGroup* Animation::getKeyframeGroup(Bone *b){
|
||||
int id=-1;
|
||||
for(int i=0;i<keyframeGroups.size();i++)
|
||||
if(keyframeGroups[i].bone==b){
|
||||
id=i;
|
||||
break;
|
||||
}
|
||||
return id>-1?&(keyframeGroups[id]):nullptr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user