Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
4.4.0
Issue ID
1277475
Regression
No
ProBuilderMesh faces generated via script are not counted when using ProBuilderMesh.selectedFaceCount
Reproduction steps:
1. Open user's attached project "SkatePrototypeV2.zip" and scene "TestScene1"
2. In Hierarchy window, select "Ramp2_EdgeMesh" GameObject
3. In Editor menu, click Tools -> Dimensions Overlay -> Show
4. In UV Editor window, Face Selection mode, select any face
5. Observe Console window
Expected result: "ProBuilderMesh.selectedFaceCount" and "MeshSelection.selectedFaceCount" have the same face count
Actual result: "ProBuilderMesh.selectedFaceCount" is not counted
Reproducible with: 2020.2.0b3 (ProBuilder 4.4.0)
Could not test with: 2018.4.27f1, 2019.4.10f1, 2020.1.6f1 (earlier version of HDRP breaks project)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search: Inspector section icon is less sharp/more pixelated than other editor icons
- Search description string is always truncated
- [VFX] When Grouped Nodes are converted to Subgraph Operator resulting Graph Node is not included in the Group
- Search window icons are less sharp/more pixelated than other editor icons
- The Inspector can be covered when scaling the horizontal separator bar
Resolution Note:
Looks like the issue is that the sharedVertex cache is invalid after the ProbuilderEdgeworksData is applied to the mesh. Adding
mesh.sharedVertices = SharedVertex.GetSharedVerticesWithPositions(positions);
after the positions assignment should address this.