Ver Fonte

tools: do not skip supported extension types

Daniele Bartolini há 5 anos atrás
pai
commit
eaf146a9c9
2 ficheiros alterados com 1 adições e 12 exclusões
  1. 1 0
      docs/changelog.rst
  2. 0 12
      tools/level_editor/project.vala

+ 1 - 0
docs/changelog.rst

@@ -22,6 +22,7 @@ Changelog
 **Tools**
 
 * The Editor View now will use the actual unit being placed as a preview instead of its wireframe
+* Fixed an issue that caused textures with supported extension types to be skipped by the importer
 
 0.40.0
 ------

+ 0 - 12
tools/level_editor/project.vala

@@ -506,9 +506,6 @@ public class Project
 
 		foreach (unowned string filename_i in filenames)
 		{
-			if (!filename_i.has_suffix(".png"))
-				continue;
-
 			GLib.File file_src = File.new_for_path(filename_i);
 			GLib.File file_dst = File.new_for_path(Path.build_filename(destination_dir, file_src.get_basename()));
 
@@ -920,9 +917,6 @@ public class Project
 	{
 		foreach (unowned string filename_i in filenames)
 		{
-			if (!filename_i.has_suffix(".mesh"))
-				continue;
-
 			GLib.File file_src = File.new_for_path(filename_i);
 			GLib.File file_dst = File.new_for_path(Path.build_filename(destination_dir, file_src.get_basename()));
 
@@ -1034,9 +1028,6 @@ public class Project
 	{
 		foreach (unowned string filename_i in filenames)
 		{
-			if (!filename_i.has_suffix(".wav"))
-				continue;
-
 			GLib.File file_src = File.new_for_path(filename_i);
 			GLib.File file_dst = File.new_for_path(Path.build_filename(destination_dir, file_src.get_basename()));
 
@@ -1065,9 +1056,6 @@ public class Project
 	{
 		foreach (unowned string filename_i in filenames)
 		{
-			if (!filename_i.has_suffix(".png"))
-				continue;
-
 			GLib.File file_src = File.new_for_path(filename_i);
 			GLib.File file_dst = File.new_for_path(Path.build_filename(destination_dir, file_src.get_basename()));