[Plib-users] problem of removekid
Brought to you by:
sjbaker
From: <zh...@ya...> - 2003-03-16 01:49:21
|
The plib is a very good library, thank for Steve. There seems some promble in the member function removekid. After creating a scene, I can't edit it with removekid. I modify the source code of ssgBranch::removeKid ( ssgEntity *entity ) like this void ssgBranch::removeKid ( ssgEntity *entity ) { entity -> ref(); // This line is added by me entity -> removeParent ( this ) ; kids.removeEntity ( entity ) ; dirtyBSphere () ; entity -> deRef(); // This line is added by me } Now, it seems work normally. The developing tools used by me are VC++ 6.0 and Plib 1.6.0. I don't know if other guys meet this problem. I hope Steve can fix this problem in the future plib. --------------------------------- Do You Yahoo!? 雅虎娱乐新鲜到底,电子周报快乐到家! |