From d8a5555d870dca4e210440b5b35e682415507f24 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 31 Jan 2006 04:49:49 +0000 Subject: [PATCH] use os_generic --- pandatool/src/maya/mayaApi.cxx | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pandatool/src/maya/mayaApi.cxx b/pandatool/src/maya/mayaApi.cxx index 659b14cae1..b414d5876e 100644 --- a/pandatool/src/maya/mayaApi.cxx +++ b/pandatool/src/maya/mayaApi.cxx @@ -241,14 +241,11 @@ read(const Filename &filename) { maya_cat.info() << "Reading " << filename << "\n"; - // Load the file into Maya - string os_filename = filename.to_os_specific(); - -#ifdef WIN32 - // Actually, Maya seems to want forward slashes, even on Windows. - os_filename = back_to_front_slash(os_filename); -#endif + // Load the file into Maya. Maya seems to want forward slashes, + // even on Windows. + string os_filename = filename.to_os_generic(); + MFileIO::newFile(true); MStatus stat = MFileIO::open(os_filename.c_str()); if (!stat) { stat.perror(os_filename.c_str()); @@ -266,10 +263,7 @@ read(const Filename &filename) { bool MayaApi:: write(const Filename &filename) { maya_cat.info() << "Writing " << filename << "\n"; - string os_filename = filename.to_os_specific(); -#ifdef WIN32 - os_filename = back_to_front_slash(os_filename); -#endif + string os_filename = filename.to_os_generic(); const char *type = "mayaBinary"; string extension = filename.get_extension();