Browse Source

should strip out version suffixes from texture references too

David Rose 21 years ago
parent
commit
81aa4087ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pandatool/src/mayaprogs/mayaCopy.cxx

+ 1 - 1
pandatool/src/mayaprogs/mayaCopy.cxx

@@ -247,7 +247,7 @@ extract_texture(MayaShaderColorDef &color_def, CVSSourceDirectory *dir) {
       // Update the texture reference to point to the new texture
       // filename, relative to the maya file.
       Filename new_filename = dir->get_rel_to(texture_dir) + "/" +
-        texture_filename.get_basename();
+        filter_filename(texture_filename.get_basename());
       color_def.reset_maya_texture(new_filename);
     }
   }