You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like there is a null check there, but it does nothing. This seems to be the issue: mapbox/earcut#87
A simple fix for this is to modily the EliminateHoles method like this:
// process holes from left to rightfor(i=0;i< queue.Count;i++){
EliminateHole(queue[i], outerNode);NodefilterPointsNode= FilterPoints(outerNode, outerNode.next);if(filterPointsNode==null)break;outerNode=filterPointsNode;}
But I don't know how correct is this, or what the implications of the change are... Any suggestions?
The text was updated successfully, but these errors were encountered:
I'm having problems loading a map with the new Earcut dependency. In some cases, the map loads ok, but in other cases it crashes with a NPE.
The crash occurs on this line:
https://github.com/mapbox/mapbox-unity-sdk/blob/develop/sdkproject/Assets/Mapbox/Unity/MeshGeneration/Modifiers/MeshModifiers/Earcut.cs#L490
It looks like there is a null check there, but it does nothing. This seems to be the issue: mapbox/earcut#87
A simple fix for this is to modily the EliminateHoles method like this:
But I don't know how correct is this, or what the implications of the change are... Any suggestions?
The text was updated successfully, but these errors were encountered: