]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a couple small bugs with fragment creation in on-the-fly generated
authorcurt <curt>
Wed, 1 Sep 1999 18:51:49 +0000 (18:51 +0000)
committercurt <curt>
Wed, 1 Sep 1999 18:51:49 +0000 (18:51 +0000)
tiles.

src/Objects/obj.cxx

index d1c19320c4d1bec596c6e0c62d53d2f4afd26c02..e4b1b0670c37e731d50ab2372b66544938ddb919 100644 (file)
@@ -150,8 +150,8 @@ ssgBranch *fgGenTile( const string& path, FGTileEntry *t) {
     // set the texture width and height values for this
     // material
     FGMaterial m = fragment.material_ptr->get_m();
-    double tex_width = m.get_xsize();
-    double tex_height = m.get_ysize();
+    // double tex_width = m.get_xsize();
+    // double tex_height = m.get_ysize();
 
     // set ssgState
     state = fragment.material_ptr->get_state();
@@ -182,6 +182,7 @@ ssgBranch *fgGenTile( const string& path, FGTileEntry *t) {
     }
 
     Point3D cart[4], rel[4];
+    t->nodes.clear();
     for ( int i = 0; i < 4; ++i ) {
        cart[i] = fgGeodToCart(rad[i]);
        rel[i] = cart[i] - center;
@@ -213,8 +214,8 @@ ssgBranch *fgGenTile( const string& path, FGTileEntry *t) {
     }
 
     // Build flight gear structure
-    fragment.add_face(1, 2, 3);
-    fragment.add_face(1, 3, 4);
+    fragment.add_face(0, 1, 2);
+    fragment.add_face(0, 2, 3);
     t->fragment_list.push_back(fragment);
 
     // Build ssg structure