diff Renderer/Engine/SceneGraphRoot.cc @ 586:7e33deb9d3f4 draft

dynamic not work
author kazz@kazz187.st.ie.u-ryukyu.ac.jp
date Wed, 28 Oct 2009 19:44:33 +0900
parents 4ee1d40823b8
children 1bfa45a08fa7
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc	Mon Oct 26 09:03:14 2009 +0900
+++ b/Renderer/Engine/SceneGraphRoot.cc	Wed Oct 28 19:44:33 2009 +0900
@@ -152,15 +152,15 @@
 
     /* XMLのノードを一つずつ解析  */
     for (cur=cur->children; cur; cur=cur->next) {
-	/* 扱うのはsurfaceオンリー  */
-	if (xmlStrcmp(cur->name,(xmlChar*)"surface") != 0) {
-	    continue;
-	}
-	/* ポリゴン(SceneGraph)生成  */
-	SceneGraphPtr original = new SceneGraph(manager, cur);	
-	registSceneGraph(original);
-	SceneGraphPtr clone = createSceneGraph(original->sgid);
-	node->addChild(clone);
+		/* 扱うのはsurfaceオンリー  */
+		if (xmlStrcmp(cur->name,(xmlChar*)"surface") != 0) {
+			continue;
+		}
+		/* ポリゴン(SceneGraph)生成  */
+		SceneGraphPtr original = new SceneGraph(manager, cur);	
+		registSceneGraph(original);
+		SceneGraphPtr clone = createSceneGraph(original->sgid);
+		node->addChild(clone);
     }
     xmlFreeDoc(doc);
 }