… | |
… | |
2332 | while (my ($face, $info) = each %$faces) { |
2332 | while (my ($face, $info) = each %$faces) { |
2333 | next unless $info->{smooth}; |
2333 | next unless $info->{smooth}; |
2334 | my $idx = cf::face::find $face |
2334 | my $idx = cf::face::find $face |
2335 | or next; |
2335 | or next; |
2336 | if (my $smooth = cf::face::find $info->{smooth}) { |
2336 | if (my $smooth = cf::face::find $info->{smooth}) { |
2337 | cf::face::set_smooth $idx, $smooth; |
2337 | cf::face::set_smooth $idx, $smooth, $info->{smoothlevel}; |
2338 | } else { |
2338 | } else { |
2339 | warn "smooth face '$info->{smooth}' not found for face '$face'"; |
2339 | warn "smooth face '$info->{smooth}' not found for face '$face'"; |
2340 | } |
2340 | } |
2341 | Coro::cede; |
2341 | Coro::cede; |
2342 | } |
2342 | } |