]> git.mxchange.org Git - flightgear.git/commitdiff
Renamed /sim/rendering/dynamic-objects to
authordavid <david>
Sat, 20 Jul 2002 23:11:27 +0000 (23:11 +0000)
committerdavid <david>
Sat, 20 Jul 2002 23:11:27 +0000 (23:11 +0000)
/sim/rendering/random-objects, and changed the default from false to true.

src/Objects/obj.cxx

index d90815fcdf9e64d94d7b31dc3fd305fd806c34ed..017c755dfba647fa99ce4a01f2ec2e302abc8837 100644 (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 );