mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
Revert "mathutil: error instead of infinite loop if triangulation failed"
This reverts commit 9c4cb28805edf550fac9d8f4f87e568bbbf9a154. The "fix" wasn't very satisfying, I'm going to try another approach.
This commit is contained in:
parent
43507dd118
commit
5ef1db3fd3
@ -150,11 +150,7 @@ triangulate() {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int attempts = 0;
|
|
||||||
|
|
||||||
while (construct_trapezoids(num_segments) != 0) {
|
while (construct_trapezoids(num_segments) != 0) {
|
||||||
nassertv_always(attempts++ < 100);
|
|
||||||
|
|
||||||
// If there's an error, re-shuffle the index and try again.
|
// If there's an error, re-shuffle the index and try again.
|
||||||
Randomizer randomizer;
|
Randomizer randomizer;
|
||||||
for (i = 0; i < num_segments; ++i) {
|
for (i = 0; i < num_segments; ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user