reworked ForNode evaluation()
git-svn-id: svn://anubis/fart/branches/scene-file-scripting@339 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
f36c1fa60f
commit
18886ef767
3 files changed
+100
-69
No files matched your search
@@ -248,32 +248,6 @@ vector<ShapeRef> Scene::processGeneralItems(refptr<Node> node)
|
||||
return shapes;
|
||||
}
|
||||
|
||||
vector<ShapeRef> Scene::processForNode(refptr<Node> node)
|
||||
{
|
||||
if (!node->getNode(0).isNull())
|
||||
{
|
||||
node->getNode(0)->getNumber();
|
||||
}
|
||||
|
||||
vector<ShapeRef> shapes, incoming;
|
||||
|
||||
while (node->getNode(1)->getInteger() != 0)
|
||||
{
|
||||
incoming = processGeneralItems(node);
|
||||
while (incoming.size() > 0)
|
||||
{
|
||||
shapes.push_back(incoming[0]);
|
||||
incoming.erase(incoming.begin());
|
||||
}
|
||||
if (!node->getNode(2).isNull())
|
||||
{
|
||||
node->getNode(2)->getNumber();
|
||||
}
|
||||
}
|
||||
|
||||
return shapes;
|
||||
}
|
||||
|
||||
void Scene::processMaterialDefinition(refptr<Node> node)
|
||||
{
|
||||
map< string, refptr<Material> >::iterator it =
|
||||
|
||||
Reference in new issue
Block a user