Skip to content

Commit

Permalink
Patches
Browse files Browse the repository at this point in the history
  • Loading branch information
debian build committed Sep 18, 2024
1 parent ac43141 commit f8a54db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions editor/project_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,14 +635,14 @@ void ProjectManager::_open_selected_projects_check_safe_mode(bool p_safe_mode) {
_open_selected_projects_check_warnings(p_safe_mode);
}

void ProjectManager::_open_selected_projects_with_migration() {
void ProjectManager::_open_selected_projects_with_migration(bool p_safe_mode) {
#ifndef DISABLE_DEPRECATED
if (project_list->get_selected_projects().size() == 1) {
// Only migrate if a single project is opened.
_minor_project_migrate();
}
#endif
_open_selected_projects();
_open_selected_projects(p_safe_mode);
}

void ProjectManager::_install_project(const String &p_zip_path, const String &p_title) {
Expand Down
1 change: 1 addition & 0 deletions editor/project_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ class ProjectManager : public Control {
void _open_selected_projects(bool p_safe_mode);
void _open_selected_projects_check_warnings(bool p_safe_mode);
void _open_selected_projects_check_safe_mode(bool p_safe_mode);
void _open_selected_projects_with_migration(bool p_safe_mode);

void _install_project(const String &p_zip_path, const String &p_title);
void _import_project();
Expand Down
2 changes: 1 addition & 1 deletion platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def configure_mingw(env: "SConsEnvironment"):

# TODO: Re-evaluate the need for this / streamline with common config.
if env["target"] == "template_release":
if env["arch"] != "arm64":
if env["arch"].startswith("x86"):
env.Append(CCFLAGS=["-msse2"])
elif env.dev_build:
# Allow big objects. It's supposed not to have drawbacks but seems to break
Expand Down
2 changes: 0 additions & 2 deletions scene/3d/lightmap_gi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,11 +986,9 @@ LightmapGI::BakeError LightmapGI::bake(Node *p_from_node, String p_image_data_pa

LightmapGI::BakeQuality effective_bake_quality = bake_quality;
int effective_bounces = bounces;
float effective_texel_scale = texel_scale;
LightmapGI::GenerateProbes effective_gen_probes = gen_probes;
if (p_preview_bake) {
// Use lower-quality settings for quick iteration.
effective_texel_scale *= float(GLOBAL_GET("rendering/lightmapping/preview_bake/texel_scale_factor"));
effective_bake_quality = MIN(bake_quality, LightmapGI::BakeQuality(int(GLOBAL_GET("rendering/lightmapping/preview_bake/max_quality"))));
effective_bounces = MIN(bounces, int(GLOBAL_GET("rendering/lightmapping/preview_bake/max_bounces")));
effective_gen_probes = MIN(gen_probes, LightmapGI::GenerateProbes(int(GLOBAL_GET("rendering/lightmapping/preview_bake/generate_probes_max_subdiv"))));
Expand Down

0 comments on commit f8a54db

Please sign in to comment.