Merge branch 'blender-v5.0-release'

This commit is contained in:
Clément Foucault
2025-10-08 15:23:33 +02:00
5 changed files with 16 additions and 5 deletions

View File

@@ -351,10 +351,14 @@ class NODE_MT_view(Menu):
layout = self.layout
snode = context.space_data
is_compositor = snode.tree_type == 'CompositorNodeTree'
layout.prop(snode, "show_region_toolbar")
layout.prop(snode, "show_region_ui")
if is_compositor:
layout.prop(snode, "show_region_asset_shelf")
layout.separator()
sub = layout.column()

View File

@@ -3958,6 +3958,13 @@ void blo_do_versions_500(FileData *fd, Library * /*lib*/, Main *bmain)
FOREACH_NODETREE_END;
}
if (!MAIN_VERSION_FILE_ATLEAST(bmain, 500, 107)) {
LISTBASE_FOREACH (Material *, material, &bmain->materials) {
/* The flag was actually interpreted as reversed. */
material->blend_flag ^= MA_BL_LIGHTPROBE_VOLUME_DOUBLE_SIDED;
}
}
/**
* Always bump subversion in BKE_blender_version.h when adding versioning
* code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check.

View File

@@ -1540,7 +1540,7 @@ PassMain::Sub *CapturePipeline::surface_material_add(::Material *blender_mat, GP
GPUPass *gpupass = GPU_material_get_pass(gpumat);
sub_pass.shader_set(GPU_pass_shader_get(gpupass));
sub_pass.push_constant("is_double_sided",
!(blender_mat->blend_flag & MA_BL_LIGHTPROBE_VOLUME_DOUBLE_SIDED));
bool(blender_mat->blend_flag & MA_BL_LIGHTPROBE_VOLUME_DOUBLE_SIDED));
return &sub_pass;
}

Binary file not shown.

Binary file not shown.