Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Jan 13, 2024
1 parent 492e3fc commit 4244977
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions utility/file_access_gdre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ String PathFinder::_fix_path_file_access(const String &p_path) {

// TODO: This will have to be modified if additional fix_path overrides are added
#ifdef WINDOWS_ENABLED
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
String r_path = p_path;
if (r_path.is_absolute_path() && !r_path.is_network_share_path() && r_path.length() > MAX_PATH) {
r_path = "\\\\?\\" + r_path.replace("/", "\\");
Expand Down
2 changes: 2 additions & 0 deletions utility/gdre_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ void addCompatibilityClasses() {
}

GDRESettings::GDRESettings() {
#ifdef TOOLS_ENABLED
RenderingServer::get_singleton()->set_warn_on_surface_upgrade(false);
#endif
singleton = this;
gdre_packeddata_singleton = memnew(GDREPackedData);
addCompatibilityClasses();
Expand Down
3 changes: 2 additions & 1 deletion utility/import_exporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,9 @@ Error ImportExporter::export_scene(const String &output_dir, Ref<ImportInfo> &ii
WARN_PRINT("Failed to load texture " + tex_iinfo->get_path() + " for scene " + iinfo->get_path());
continue;
}
#ifdef TOOLS_ENABLED
texture->set_import_path(tex_iinfo->get_path());

#endif
texture->set_path(splits[2]);
if (!splits[0].is_empty()) {
auto id = ResourceUID::get_singleton()->text_to_id(splits[0]);
Expand Down

0 comments on commit 4244977

Please sign in to comment.