Browse Source

filter_filename lloks for a numeric after _v to determine version number and strips it off therefore

Asad M. Zaman 20 years ago
parent
commit
017c83a986
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pandatool/src/mayaprogs/mayaCopy.cxx

+ 2 - 0
pandatool/src/mayaprogs/mayaCopy.cxx

@@ -140,6 +140,8 @@ filter_filename(const string &source) {
 
   size_t dot = source.rfind('.');
   size_t underscore = source.rfind("_v", dot);
+  if ((underscore != string::npos) && !isdigit(source.at(underscore+2)))
+    underscore = string::npos;
 
   string extension = source.substr(dot);
   if (extension == ".ma") {