Esempio n. 1
0
void LightNode::onRemoveFromScene()
{
	// Call the base class first
	EntityNode::onRemoveFromScene();

	GlobalRenderSystem().detachLight(*this);

	// De-select all child components as well
	setSelectedComponents(false, SelectionSystem::eVertex);
	setSelectedComponents(false, SelectionSystem::eFace);
}
Esempio n. 2
0
void Doom3GroupNode::onRemoveFromScene()
{
	// Call the base class first
	EntityNode::onRemoveFromScene();

	// De-select all child components as well
	setSelectedComponents(false, SelectionSystem::eVertex);

	Node::instanceDetach(scene::findMapFile(getSelf()));
}