Sculpt: Support Float2 attributes for dynamic topology

It was a missing case in the code which is responsible for in the code
which is responsible for filling in VBO data. It is now implemented for
vertex and corner attributes.

Co-Authored-By: Hans Goudey <hans@blender.org>

Pull Request: https://projects.blender.org/blender/blender/pulls/113536
This commit is contained in:
Sergey Sharybin 2023-10-11 12:12:37 +02:00 committed by Sergey Sharybin
parent e36626b02d
commit 926c6782fe
1 changed files with 6 additions and 0 deletions

View File

@ -839,6 +839,9 @@ struct PBVHBatches {
case CD_PROP_BYTE_COLOR:
extract_data_vert_bmesh<MLoopCol, ushort4>(args, cd_offset, *vbo.vert_buf);
return;
case CD_PROP_FLOAT2:
extract_data_vert_bmesh<float2, float2>(args, cd_offset, *vbo.vert_buf);
return;
default:
break;
}
@ -852,6 +855,9 @@ struct PBVHBatches {
case CD_PROP_BYTE_COLOR:
extract_data_corner_bmesh<MLoopCol, ushort4>(args, cd_offset, *vbo.vert_buf);
return;
case CD_PROP_FLOAT2:
extract_data_corner_bmesh<float2, float2>(args, cd_offset, *vbo.vert_buf);
return;
default:
break;
}