Sfoglia il codice sorgente

add -delod to egg2x

David Rose 24 anni fa
parent
commit
0f610d72d2

+ 1 - 1
pandatool/src/eggbase/eggReader.cxx

@@ -121,7 +121,7 @@ add_delod_options(double default_delod) {
        "Eliminate LOD's by choosing the level that would be appropriate for "
        "a camera at the indicated fixed distance from each LOD.  "
        "Use -delod -1 to keep all the LOD's as they are.  The default value "
-       "is " + format_string(default_delod),
+       "is " + format_string(default_delod) + ".",
        &EggReader::dispatch_double, NULL, &_delod);
   }
 }

+ 2 - 1
pandatool/src/xfileprogs/eggToX.cxx

@@ -27,6 +27,7 @@
 EggToX::
 EggToX() : EggToSomething("DirectX", ".x", true, false) {
   add_texture_options();
+  add_delod_options(0.0);
 
   set_program_description
     ("This program reads an Egg file and outputs an equivalent, "
@@ -64,7 +65,7 @@ run() {
     exit(1);
   }
 
-  if (!copy_textures()) {
+  if (!do_reader_options()) {
     exit(1);
   }