forked from blender/blender
index-of-nearest-104619 #2
@ -98,6 +98,7 @@ static void gpu_stack_vector_from_socket(GPUNodeStack &stack, const bNodeSocket
|
||||
return;
|
||||
default:
|
||||
BLI_assert_unreachable();
|
||||
return;
|
||||
}
|
||||
}
|
||||
case SOCK_VECTOR: {
|
||||
@ -115,6 +116,7 @@ static void gpu_stack_vector_from_socket(GPUNodeStack &stack, const bNodeSocket
|
||||
return;
|
||||
default:
|
||||
BLI_assert_unreachable();
|
||||
return;
|
||||
}
|
||||
}
|
||||
case SOCK_RGBA: {
|
||||
@ -131,6 +133,7 @@ static void gpu_stack_vector_from_socket(GPUNodeStack &stack, const bNodeSocket
|
||||
return;
|
||||
default:
|
||||
BLI_assert_unreachable();
|
||||
return;
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
@ -25,7 +25,7 @@ bke::CurvesGeometry mesh_to_curve_convert(
|
||||
const bke::AnonymousAttributePropagationInfo &propagation_info);
|
||||
|
||||
bke::CurvesGeometry create_curve_from_vert_indices(
|
||||
const Mesh &mesh,
|
||||
const bke::AttributeAccessor &mesh_attributes,
|
||||
Span<int> vert_indices,
|
||||
Span<int> curve_offsets,
|
||||
IndexRange cyclic_curves,
|
||||
|
@ -61,7 +61,7 @@ static Curves *edge_paths_to_curves_convert(
|
||||
return nullptr;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user