Fix Rust 1.97 imaging gate lints
This commit is contained in:
@@ -251,7 +251,7 @@ impl SculptMesh {
|
||||
}
|
||||
let original_width = rows[0].len();
|
||||
if sculpt_type != SculptMeshSculptType::Plane {
|
||||
if rows.len() % 2 == 0 {
|
||||
if rows.len().is_multiple_of(2) {
|
||||
for row in &mut rows {
|
||||
row.push(row[0]);
|
||||
}
|
||||
@@ -264,7 +264,7 @@ impl SculptMesh {
|
||||
let top_pole = rows[0][original_width / 2];
|
||||
let bottom_pole = rows[rows.len() - 1][original_width / 2];
|
||||
if sculpt_type == SculptMeshSculptType::Sphere {
|
||||
if rows.len() % 2 == 0 {
|
||||
if rows.len().is_multiple_of(2) {
|
||||
let count = rows[0].len();
|
||||
rows.insert(0, vec![top_pole; count]);
|
||||
rows.push(vec![bottom_pole; count]);
|
||||
|
||||
Reference in New Issue
Block a user