From 6a045b5c5e7f64cbc14b59584acab0823df9ba6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 5 Apr 2016 15:43:32 +0200 Subject: [PATCH] Obj writer: Fix OBJ writer bug file extension removal (Thanks to Katharina Breininger for the patch) (cherry picked from commit 4cfe75788a5374978555322c596ecdea9909516a) --- Doc/changelog.docu | 2 ++ src/OpenMesh/Core/IO/writer/OBJWriter.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/changelog.docu b/Doc/changelog.docu index 8f07e75e..91c1aca7 100644 --- a/Doc/changelog.docu +++ b/Doc/changelog.docu @@ -58,6 +58,8 @@ Tools diff --git a/src/OpenMesh/Core/IO/writer/OBJWriter.cc b/src/OpenMesh/Core/IO/writer/OBJWriter.cc index f89e8e0c..b1e8838a 100644 --- a/src/OpenMesh/Core/IO/writer/OBJWriter.cc +++ b/src/OpenMesh/Core/IO/writer/OBJWriter.cc @@ -115,7 +115,7 @@ write(const std::string& _filename, BaseExporter& _be, Options _opt, std::stream } //remove the file extension - dot = _filename.find_last_of("."); + dot = objName_.find_last_of("."); if(dot != std::string::npos) objName_ = objName_.substr(0,dot);