C4 Engine
C4 Engine API Documentation

Node::NeutralizeNode

Defined in:  C4Node.h
Returns a node to the state it was in before being preprocessed.
Prototype

virtual void NeutralizeNode(void);

Description
The NeutralizeNode function returns a node to the state it was in before the Node::PreprocessNode function was called for it. Whenever a node is removed from a scene, it should first have its NeutralizeNode function called.

When the NeutralizeNode function is called for a node, it internally causes all of the subnodes of that node to be neutralized as well, in reverse order compared to the PreprocessNode function.

Whenever a subclass implements an override for the NeutralizeNode function, it should always call the NeutralizeNode function of its direct base class last.
See Also

Node::PreprocessNode