Erik Hofman wrote:
Update of /var/cvs/SimGear-0.3/SimGear/simgear/scene/tgdb
In directory baron:/tmp/cvs-serv8740/tgdb

Modified Files:
obj.cxx Log Message:
Frederic Bouvier:


put all leaf is a seperated branch so that it is
possible to use a pretrav callback to cull out
terrain without culling out light or dynamic
objects. It appears that plib is not calling the
pretrav callback for leaves.

Is there any chance local_terrain needs to be reffed in the code snippet below, so that it is still available when the scenery chunk needs to be reloaded?


Erik



Index: obj.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/scene/tgdb/obj.cxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** a/obj.cxx 30 Dec 2003 05:53:50 -0000 1.9
--- b/obj.cxx 2 Apr 2004 14:39:19 -0000 1.10
***************
*** 328,331 ****
--- 328,335 ----
}
+ ssgBranch *local_terrain = new ssgBranch;
+ local_terrain->setName( "LocalTerrain" );
+ geometry->addKid( local_terrain );
+ geometry->setName( (char *)path.c_str() );



_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to