cocos-engine
cocos-engine copied to clipboard
Graphical drawing errors
Cocos Creator version
3.4.2,3.5.0
System information
chrome,native
Issue description

This problem is caused by the different conditions established in sortLink, resulting in different plotting point generation.

Relevant error log output
No response
Steps to reproduce
2.4.9 demo: NewProject_22.zip
3.4.2 demo: NewProject_18.zip
graphic.ts -> fill() -> graphics-assembler.ts -> _expandFill() -> earcut.ts -> earcut() -> earcutLinked()
-> indexCurve() -> sortLinked()
File path:.\engine\cocos\2d\assembler\graphics\webgl\earcut.ts
Interim Program:

Minimal reproduction project
No response
Feedback on the same issue: https://forum.cocos.org/t/topic/112037/, please raise the priority to fix this issue.
this remains on 3.6.2!