Renamed /sim/rendering/dynamic-objects to
/sim/rendering/random-objects, and changed the default from false to true.
This commit is contained in:
parent
3f174a15cd
commit
140774b1e2
1 changed files with 5 additions and 5 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue