Fix #147088: Crash copying custom-normal in face + vertex selection mode
The logic to copy custom normals checked for selection but didn't account for the selection-history failing to initialize any custom-normal loops. Resolve by using the regular selection if the selection-history cannot be used as a source for loop-normals. Ref !147087
This commit is contained in:
@@ -2200,7 +2200,9 @@ static int bm_loop_normal_mark_indiv(BMesh *bm, BLI_bitmap *loops, const bool do
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
/* If the selection history could not be used, fall back to regular selection. */
|
||||
if (totloopsel == 0) {
|
||||
if (sel_faces) {
|
||||
bm_loop_normal_mark_faces_impl(bm, loops, do_all_loops_of_vert, &totloopsel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user