|
[Ogre-cvsmail] ogrenew/Samples/SkeletalAnimation/include SkeletalAnimation.h,1.8,1.9
From: <sinbad@us...> - 2003-03-25 22:45
|
Update of /cvsroot/ogre/ogrenew/Samples/SkeletalAnimation/include
In directory sc8-pr-cvs1:/tmp/cvs-serv29763/Samples/SkeletalAnimation/include
Modified Files:
SkeletalAnimation.h
Log Message:
Node subclasses now no longer override create.. get... remove.. to return
their own subclasses instead of Node*. This is to allow proper virtualisation
of these methods and does require some casting in your code to the specific type from Node* in future.
Index: SkeletalAnimation.h
===================================================================
RCS file: /cvsroot/ogre/ogrenew/Samples/SkeletalAnimation/include/SkeletalAnimation.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** SkeletalAnimation.h 26 Oct 2002 17:26:03 -0000 1.8
--- SkeletalAnimation.h 25 Mar 2003 22:44:35 -0000 1.9
***************
*** 81,85 ****
// Add entity to the root scene node
! mSceneMgr->getRootSceneNode()->createChild()->attachObject(ent);
mAnimState = ent->getAnimationState("Walk");
--- 81,85 ----
// Add entity to the root scene node
! static_cast<SceneNode*>(mSceneMgr->getRootSceneNode()->createChild())->attachObject(ent);
mAnimState = ent->getAnimationState("Walk");
|
| Thread | Author | Date |
|---|---|---|
| [Ogre-cvsmail] ogrenew/Samples/SkeletalAnimation/include SkeletalAnimation.h,1.8,1.9 | <sinbad@us...> |