index-of-nearest-104619 #2

Merged
Iliya Katushenock merged 62 commits from HooglyBoogly/blender:index-of-nearest-104619 into index_of_nearest 2023-04-20 21:19:53 +02:00
3 changed files with 5 additions and 2 deletions
Showing only changes of commit 097b9c5a36 - Show all commits

View File

@ -98,6 +98,7 @@ static void gpu_stack_vector_from_socket(GPUNodeStack &stack, const bNodeSocket
return; return;
default: default:
BLI_assert_unreachable(); BLI_assert_unreachable();
return;
} }
} }
case SOCK_VECTOR: { case SOCK_VECTOR: {
@ -115,6 +116,7 @@ static void gpu_stack_vector_from_socket(GPUNodeStack &stack, const bNodeSocket
return; return;
default: default:
BLI_assert_unreachable(); BLI_assert_unreachable();
return;
} }
} }
case SOCK_RGBA: { case SOCK_RGBA: {
@ -131,6 +133,7 @@ static void gpu_stack_vector_from_socket(GPUNodeStack &stack, const bNodeSocket
return; return;
default: default:
BLI_assert_unreachable(); BLI_assert_unreachable();
return;
} }
} }
default: default:

View File

@ -25,7 +25,7 @@ bke::CurvesGeometry mesh_to_curve_convert(
const bke::AnonymousAttributePropagationInfo &propagation_info); const bke::AnonymousAttributePropagationInfo &propagation_info);
bke::CurvesGeometry create_curve_from_vert_indices( bke::CurvesGeometry create_curve_from_vert_indices(
const Mesh &mesh, const bke::AttributeAccessor &mesh_attributes,
Span<int> vert_indices, Span<int> vert_indices,
Span<int> curve_offsets, Span<int> curve_offsets,
IndexRange cyclic_curves, IndexRange cyclic_curves,

View File

@ -61,7 +61,7 @@ static Curves *edge_paths_to_curves_convert(
return nullptr; return nullptr;
} }
Curves *curves_id = bke::curves_new_nomain(geometry::create_curve_from_vert_indices( Curves *curves_id = bke::curves_new_nomain(geometry::create_curve_from_vert_indices(
mesh, vert_indices, curve_offsets, IndexRange(0), propagation_info)); mesh.attributes(), vert_indices, curve_offsets, IndexRange(0), propagation_info));
return curves_id; return curves_id;
} }