From 228878604cc3443a9d45a141fa03d05d33c81e6f Mon Sep 17 00:00:00 2001 From: Samuel Tallet Date: Wed, 15 Jan 2020 18:09:42 +0100 Subject: [PATCH] Fix OBJ loading. --- source/universal_importer.rb | 2 +- source/universal_importer/importer.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/universal_importer.rb b/source/universal_importer.rb index 16dbb28..fd4559e 100644 --- a/source/universal_importer.rb +++ b/source/universal_importer.rb @@ -26,7 +26,7 @@ # Universal Importer plugin namespace. module UniversalImporter - VERSION = '1.1.1'.freeze + VERSION = '1.1.2'.freeze # Load translation if it's available for current locale. TRANSLATE = LanguageHandler.new('uir.strings') diff --git a/source/universal_importer/importer.rb b/source/universal_importer/importer.rb index 007965a..e9b9b4b 100644 --- a/source/universal_importer/importer.rb +++ b/source/universal_importer/importer.rb @@ -280,6 +280,8 @@ def copy_to_prog_data_dir texture_refs.each do |texture_path| + next unless File.exist?(File.join(@source_dir, texture_path)) + Utils.mkdir_and_copy_file( File.join(@source_dir, texture_path), File.join(SESSION[:temp_dir], texture_path) # destination