Skip to content

Commit

Permalink
Fixed export templates path
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Mar 15, 2020
1 parent 7f48d58 commit fc72fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/material_maker/engine/gen_material.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc72fd0

Please sign in to comment.