GPv3: Fix Normal Field

Part of #113602.
Ref !113704.
This commit is contained in:
Dalai Felinto
2023-10-14 00:47:56 +02:00
committed by Dalai Felinto
parent 16b7977bb5
commit 7a73f792ed

View File

@@ -529,7 +529,7 @@ GVArray NormalFieldInput::get_varray_for_context(const GeometryFieldContext &con
if (const Mesh *mesh = context.mesh()) {
return mesh_normals_varray(*mesh, mask, context.domain());
}
if (const CurvesGeometry *curves = context.curves()) {
if (const CurvesGeometry *curves = context.curves_or_strokes()) {
return curve_normals_varray(*curves, context.domain());
}
return {};