From fc72fd0af46987983291eb7a29bf7433cfe9b4d1 Mon Sep 17 00:00:00 2001 From: RodZill4 Date: Sun, 15 Mar 2020 07:08:07 +0100 Subject: [PATCH] Fixed export templates path --- addons/material_maker/engine/gen_material.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/material_maker/engine/gen_material.gd b/addons/material_maker/engine/gen_material.gd index 1af89e1..58f9c6a 100644 --- a/addons/material_maker/engine/gen_material.gd +++ b/addons/material_maker/engine/gen_material.gd @@ -243,7 +243,7 @@ func create_file_from_template(template : String, file_name : String, export_con var in_file = File.new() var out_file = File.new() if in_file.open(mm_loader.STD_GENDEF_PATH+"/"+template, File.READ) != OK: - if in_file.open(OS.get_executable_path().get_base_dir()+"/generators/"+template, File.READ) != OK: + if in_file.open(OS.get_executable_path().get_base_dir()+"/nodes/"+template, File.READ) != OK: print("Cannot find template file "+template) return false Directory.new().remove(file_name)