Cleanup: make GArray declarations more explicit

Differential Revision: https://developer.blender.org/D16064
This commit is contained in:
Iliya Katueshenock 2022-11-12 14:14:42 +01:00 committed by Jacques Lucke
parent 0fc27536fb
commit 3534c2b4ad
2 changed files with 2 additions and 2 deletions

View File

@ -718,7 +718,7 @@ static void trim_evaluated_curves(const bke::CurvesGeometry &src_curves,
for (const int64_t curve_i : selection.slice(range)) {
/* Interpolate onto the evaluated point domain and sample the evaluated domain. */
const IndexRange src_evaluated_points = src_curves.evaluated_points_for_curve(curve_i);
GArray evaluated_data(CPPType::get<T>(), src_evaluated_points.size());
GArray<> evaluated_data(CPPType::get<T>(), src_evaluated_points.size());
GMutableSpan evaluated_span = evaluated_data.as_mutable_span();
src_curves.interpolate_to_evaluated(
curve_i, attribute.src.slice(src_curves.points_for_curve(curve_i)), evaluated_span);

View File

@ -104,7 +104,7 @@ class InterpolateDomain final : public bke::GeometryFieldInput {
const bke::GeometryFieldContext other_domain_context{
context.geometry(), context.type(), src_domain_};
const int64_t src_domain_size = attributes.domain_size(src_domain_);
GArray values(src_field_.cpp_type(), src_domain_size);
GArray<> values(src_field_.cpp_type(), src_domain_size);
FieldEvaluator value_evaluator{other_domain_context, src_domain_size};
value_evaluator.add_with_destination(src_field_, values.as_mutable_span());
value_evaluator.evaluate();