Notifications
Clear all

[Closed] Get Inode from Animatable? C++

Is there a way to get a scene node from the Animatable?

We have been searching the scene by SuperClass and Class from the Animatable Class to an “Tab<Animatable*>” some of the objects are Inodes and would like to see if that Inode has been deleted.

If I delete the object and check it’s still in the Animatable until I flush the Undo buffer. I would like to know if its still there and not flush the Undo.

Tab<Animatable*> OurCount;

OurCount[i]->IsDeleted(OurCount[i])

The IsDeleted does not work.

Any help would be great.

3 Replies
1 Reply
(@denist)
Joined: 10 months ago

Posts: 0

but i don’t understand the logic of what you do… if you need to flush UNDO you have to do it, because you can’t prevent flushing by anyone else anyway

if an animatable is a INode it has to have INODE_INTERFACE. if animatable is deleted(pre-deleted) its AFlag A_IS_DELETED has to be set

Haaa, sorry forgot about flags. NICE ONE

Thanks
Mate