1
0
Fork 0

Renamed /sim/rendering/dynamic-objects to

/sim/rendering/random-objects, and changed the default from false to true.
This commit is contained in:
david 2002-07-20 23:11:27 +00:00
parent 3f174a15cd
commit 140774b1e2

View file

@ -1330,8 +1330,8 @@ bool fgBinObjLoad( const string& path, const bool is_base,
ssgVertexArray *ground_lights )
{
SGBinObject obj;
bool use_dynamic_objects =
fgGetBool("/sim/rendering/dynamic-objects", false);
bool use_random_objects =
fgGetBool("/sim/rendering/random-objects", true);
if ( ! obj.read_bin( path ) ) {
return false;
@ -1418,7 +1418,7 @@ bool fgBinObjLoad( const string& path, const bool is_base,
vertex_index, normal_index, tex_index,
is_base, ground_lights );
if (use_dynamic_objects)
if (use_random_objects)
gen_random_surface_objects(leaf, geometry, geod_lon, geod_lat,
material);
geometry->addKid( leaf );
@ -1439,7 +1439,7 @@ bool fgBinObjLoad( const string& path, const bool is_base,
vertex_index, normal_index, tex_index,
is_base, ground_lights );
if (use_dynamic_objects)
if (use_random_objects)
gen_random_surface_objects(leaf, geometry, geod_lon, geod_lat,
material);
geometry->addKid( leaf );
@ -1459,7 +1459,7 @@ bool fgBinObjLoad( const string& path, const bool is_base,
nodes, normals, texcoords,
vertex_index, normal_index, tex_index,
is_base, ground_lights );
if (use_dynamic_objects)
if (use_random_objects)
gen_random_surface_objects(leaf, geometry, geod_lon, geod_lat,
material);
geometry->addKid( leaf );