Deleted Node

Hi,

Say I have a variable, X, which contains a reference to a node in the scene.  If I delete the node from the scene, X still points to that non-existent node.

The variable X still returns some correct information like X.getLabel(), but if I call, for example, X.select(true) then obviously I get an error because I can't select the node anymore.

So how can I tell if X is pointing to a deleted node?

 

Comments

Sign In or Register to comment.