mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 13:49:07 +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
|
} else
|
||||||
originalOutput->setSize(originalOutput->size() - 2, 0);
|
originalOutput->setSize(originalOutput->size() - 2, 0);
|
||||||
|
|
||||||
|
if (originalOutput->size() < 6) {
|
||||||
|
originalOutput->clear();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return clipped;
|
return clipped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user