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;
|
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:
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user