Cleanup: redundant initialization
These were limited to obvious cases. Some less obvious cases were kept as refactoring might make them necessary in future.
This commit is contained in:
@@ -1521,12 +1521,12 @@ void BKE_mesh_transform(Mesh *me, const float mat[4][4], bool do_keys)
|
||||
|
||||
void BKE_mesh_translate(Mesh *me, const float offset[3], const bool do_keys)
|
||||
{
|
||||
MVert *mvert = CustomData_duplicate_referenced_layer(&me->vdata, CD_MVERT, me->totvert);
|
||||
CustomData_duplicate_referenced_layer(&me->vdata, CD_MVERT, me->totvert);
|
||||
/* If the referenced layer has been re-allocated need to update pointers stored in the mesh. */
|
||||
BKE_mesh_update_customdata_pointers(me, false);
|
||||
|
||||
int i = me->totvert;
|
||||
for (mvert = me->mvert; i--; mvert++) {
|
||||
for (MVert *mvert = me->mvert; i--; mvert++) {
|
||||
add_v3_v3(mvert->co, offset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user