Browse Source

Don't duplicate .uid files

kobewi 7 months ago
parent
commit
d8db3085a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/editor_file_system.cpp

+ 1 - 1
editor/editor_file_system.cpp

@@ -3012,7 +3012,7 @@ bool EditorFileSystem::_copy_directory(const String &p_from, const String &p_to,
 	for (String F = old_dir->_get_next(); !F.is_empty(); F = old_dir->_get_next()) {
 		if (old_dir->current_is_dir()) {
 			success = _copy_directory(p_from.path_join(F), p_to.path_join(F), p_files) && success;
-		} else if (F.get_extension() != "import") {
+		} else if (F.get_extension() != "import" && F.get_extension() != "uid") {
 			CopiedFile copy;
 			copy.from = p_from.path_join(F);
 			copy.to = p_to.path_join(F);