Selaa lähdekoodia

Merge pull request #64 from JosephHalter/patch-1

Fix searching of materials in export directory
sdfgeoff 7 vuotta sitten
vanhempi
commit
81ca28edbc
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      io_scene_godot/converters/material.py

+ 1 - 1
io_scene_godot/converters/material.py

@@ -98,7 +98,7 @@ def find_material(export_settings, material):
     if search_type == "PROJECT_DIR":
         search_dir = export_settings["project_path_func"]()
     elif search_type == "EXPORT_DIR":
-        search_dir = export_settings["path"]
+        search_dir = os.path.dirname(export_settings["path"])
     else:
         search_dir = None