Merge branch 'blender-v4.4-release'

This commit is contained in:
Clément Foucault
2025-03-10 13:07:47 +01:00
2 changed files with 7 additions and 3 deletions

View File

@@ -1015,12 +1015,16 @@ bool Instance::object_needs_prepass(const ObjectRef &ob_ref, bool in_paint_mode)
if (in_paint_mode) {
/* Allow paint overlays to draw with depth equal test. */
return object_is_rendered_transparent(ob_ref.object, state);
if (object_is_rendered_transparent(ob_ref.object, state)) {
return true;
}
}
if (!state.xray_enabled) {
/* Force depth prepass if depth buffer form render engine is not available. */
return !state.is_render_depth_available && (ob_ref.object->dt >= OB_SOLID);
if (!state.is_render_depth_available && (ob_ref.object->dt >= OB_SOLID)) {
return true;
}
}
return false;

View File

@@ -245,7 +245,7 @@ static void control_point_colors_and_sizes(const PrimitiveToolOperation &ptd,
}
colors.last() = color_gizmo_primary;
sizes.last() = size_primary;
sizes.last() = size_tertiary;
if (ELEM(ptd.type, PrimitiveType::Line, PrimitiveType::Polyline)) {
colors.last(1) = color_gizmo_secondary;