GPv3: Populate part of the buffer data #109093

Merged
Falk David merged 21 commits from casey-bianco-davis/blender:GPv3-populate-buffer-data into main 2024-01-19 11:47:10 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 1e77160674 - Show all commits

View File

@ -79,7 +79,7 @@ void legacy_gpencil_frame_to_grease_pencil_drawing(const bGPDframe &gpf,
SpanAttributeWriter<float> stroke_hardnesses = attributes.lookup_or_add_for_write_span<float>(
"hardness", ATTR_DOMAIN_CURVE);
SpanAttributeWriter<float> stroke_point_aspect_ratios =
attributes.lookup_or_add_for_write_span<float>("point_aspect_ratio", ATTR_DOMAIN_CURVE);
attributes.lookup_or_add_for_write_span<float>("aspect_ratio", ATTR_DOMAIN_CURVE);
SpanAttributeWriter<float2> stroke_fill_translations =
attributes.lookup_or_add_for_write_span<float2>("fill_translation", ATTR_DOMAIN_CURVE);
SpanAttributeWriter<float> stroke_fill_rotations =

View File

@ -477,7 +477,7 @@ static void grease_pencil_geom_batch_ensure(const GreasePencil &grease_pencil, c
const VArray<float> stroke_hardnesses = *attributes.lookup_or_default<float>(
"hardness", ATTR_DOMAIN_CURVE, 1.0f);
const VArray<float> stroke_point_aspect_ratios = *attributes.lookup_or_default<float>(
"point_aspect_ratio", ATTR_DOMAIN_CURVE, 1.0f);
"aspect_ratio", ATTR_DOMAIN_CURVE, 1.0f);
const VArray<ColorGeometry4f> stroke_fill_colors =
*attributes.lookup_or_default<ColorGeometry4f>(
"fill_color", ATTR_DOMAIN_CURVE, ColorGeometry4f(0.0f, 0.0f, 0.0f, 0.0f));