mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
Animation controller uses now the singleton pattern
This commit is contained in:
@@ -58,7 +58,7 @@ int main(){
|
||||
* The AnimationController plays the animations set in the AnimationChannel objects.
|
||||
* AnimationChannel objects require an animation and animatable objects, e.g. textures to work.
|
||||
*/
|
||||
AnimationController *controller = skeleton->getAnimationController();
|
||||
AnimationController *controller = AnimationController::getSingleton();
|
||||
AnimationChannel *channel = new AnimationChannel();
|
||||
controller->addAnimationChannel(channel);
|
||||
channel->addAnimatable(skeleton->getBone("bone"));
|
||||
|
||||
Reference in New Issue
Block a user