mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[cpp] Fix handling of degenerate clipping polygons, closes #2579
This commit is contained in:
parent
aca86fa588
commit
92b5b8a1ee
@ -363,6 +363,10 @@ bool SkeletonClipping::clip(float x1, float y1, float x2, float y2, float x3, fl
|
||||
} else
|
||||
originalOutput->setSize(originalOutput->size() - 2, 0);
|
||||
|
||||
if (originalOutput->size() < 6) {
|
||||
originalOutput->clear();
|
||||
return false;
|
||||
}
|
||||
return clipped;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user