added Node::evaluate(parent)

git-svn-id: svn://anubis/fart/branches/scene-file-scripting@335 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2010-10-06 15:38:25 +00:00
1 parent 74f27c2076
commit b851c3be98
2 files changed
+19 -9

No files matched your search

+13
View File
@@ -47,6 +47,19 @@ class Node
std::cerr << "Warning: Node::getNode() called!" << std::endl;
return NULL;
}
virtual void evaluate(refptr<Node> parent)
{
std::cerr << "Warning: Node::evaluate() called!" << std::endl;
}
virtual void evaluateChildren(refptr<Node> parent)
{
for (std::vector< refptr<Node> >::iterator it = m_children.begin();
it != m_children.end();
it++)
{
(*it)->evaluate(parent);
}
}
virtual bool isShape() { return false; }
virtual bool isMaterial() { return false; }