From 017c83a986b03606d2db3f58b7ddd3f2aee3e84d Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Thu, 25 Aug 2005 03:22:48 +0000 Subject: [PATCH] filter_filename lloks for a numeric after _v to determine version number and strips it off therefore --- pandatool/src/mayaprogs/mayaCopy.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandatool/src/mayaprogs/mayaCopy.cxx b/pandatool/src/mayaprogs/mayaCopy.cxx index 3502eb5bcd..5fdb07693b 100644 --- a/pandatool/src/mayaprogs/mayaCopy.cxx +++ b/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") {