From 8d265b43923be8d18b749d12dea19217bc4ae625 Mon Sep 17 00:00:00 2001 From: datacrystals Date: Tue, 10 May 2022 22:21:46 +0000 Subject: [PATCH] Add Vert/Tex Count Displays (#162) --- .../Utils/Import_Asset/ERS_Editor_ModelImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Editor/MenuEntries/GUI_Menu_File/Utils/Import_Asset/ERS_Editor_ModelImporter.cpp b/Source/Core/Editor/MenuEntries/GUI_Menu_File/Utils/Import_Asset/ERS_Editor_ModelImporter.cpp index 5b529e5087..2ffca51f56 100644 --- a/Source/Core/Editor/MenuEntries/GUI_Menu_File/Utils/Import_Asset/ERS_Editor_ModelImporter.cpp +++ b/Source/Core/Editor/MenuEntries/GUI_Menu_File/Utils/Import_Asset/ERS_Editor_ModelImporter.cpp @@ -24,7 +24,7 @@ long ERS_CLASS_ModelImporter::ImportModel(std::string AssetPath) { // Get Model Path std::string ModelDirectory = AssetPath.substr(0, std::string(AssetPath).find_last_of("/")); - std::string ModelFileName = AssetPath.substr(AssetPath.find_last_of("/"), AssetPath.size()-1); + std::string ModelFileName = AssetPath.substr(AssetPath.find_last_of("/") + 1, AssetPath.size()-1); // Read File Assimp::Importer Importer;