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

Package: Probuilder

-

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)

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.