Fix #138910: Crash with sculpt mode and "Texture" shading type

Using the wrong `std::string` constructor through an alias, oops..
This commit is contained in:
Hans Goudey
2025-05-15 10:13:34 -04:00
parent df6e65dd93
commit b13bdcfaeb

View File

@@ -190,7 +190,7 @@ Vector<SculptBatch> sculpt_batches_get(const Object *ob, SculptBatchFeature feat
if (features & SCULPT_BATCH_UV) {
const CustomData *corner_data = ss.bm ? &ss.bm->ldata : &mesh->corner_data;
if (const char *name = CustomData_get_active_layer_name(corner_data, CD_PROP_FLOAT2)) {
attrs.append(pbvh::GenericRequest{name, CD_PROP_FLOAT2});
attrs.append(pbvh::GenericRequest(name));
}
}