Code cleanup to use array.data() rather than &array[0]
[blender.git] / intern / cycles / subd / subd_dice.cpp
index 36981a20f3c868c12ef1f231c2a26ee649458f6a..a1bd349b16736e336cdc96dbeeff08fdfebfe347 100644 (file)
@@ -57,7 +57,7 @@ void EdgeDice::reserve(int num_verts)
 
        Attribute *attr_vN = mesh->attributes.add(ATTR_STD_VERTEX_NORMAL);
 
-       mesh_P = &mesh->verts[0];
+       mesh_P = mesh->verts.data();
        mesh_N = attr_vN->data_float3();
 }