Browse Source

reduce max search depth

cxgeorge 24 years ago
parent
commit
676919e623
1 changed files with 3 additions and 2 deletions
  1. 3 2
      panda/src/sgmanip/nodePath.cxx

+ 3 - 2
panda/src/sgmanip/nodePath.cxx

@@ -43,10 +43,11 @@
 
 
 #include "plist.h"
 #include "plist.h"
 
 
-int NodePath::_max_search_depth = 10000;
+// stack seems to overflow on Intel C++ at 8000.  If we need more than 
+// 7500, need to increase stack size.
+int NodePath::_max_search_depth = 7500; 
 TypeHandle NodePath::_type_handle;
 TypeHandle NodePath::_type_handle;
 
 
-
 // This class is used in prepare_scene() to traverse the scene graph
 // This class is used in prepare_scene() to traverse the scene graph
 // and register textures and geoms with the gsg.
 // and register textures and geoms with the gsg.
 class ScenePrepareVisitor : public TraverserVisitor<NodeTransitionWrapper, NullLevelState> {
 class ScenePrepareVisitor : public TraverserVisitor<NodeTransitionWrapper, NullLevelState> {