added scenes/csg.fart, fixed bug in loading boolean objects in Scene-load.cc

git-svn-id: svn://anubis/fart/trunk@196 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2009-03-09 00:09:33 +00:00
1 parent 09e97510d8
commit 88444e25b8
2 files changed
+231 -3

No files matched your search

+3 -3
View File
@@ -471,13 +471,13 @@ refptr<Shape> Scene::processBool(refptr<Node> node)
it != node->getChildren().end();
it++)
{
if ( node->isShape() )
if ( (*it)->isShape() )
{
switch (shapes_seen)
{
case 0: shape1 = processShape(node);
case 0: shape1 = processShape(*it);
break;
case 1: shape2 = processShape(node);
case 1: shape2 = processShape(*it);
break;
}
shapes_seen++;