File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1414- [ PBLD-164] Fixed a bug with UV autostitching where the position offset would not take into account the face rotation center offset.
1515- [ PBLD-251] Fixed a bug which would cause out of bounds exceptions when exporting meshes with quad topology
1616- [ PBLD-253] Removes call to internal API that is being removed.
17+ - [ PBLD-255] Fixed an issue where faces being extruded using the shift+click were invisible
1718
1819## [ 6.0.6] - 2025-07-01
1920
Original file line number Diff line number Diff line change @@ -320,6 +320,9 @@ static void Extrude()
320320 var selection = MeshSelection . topInternal ;
321321 var selectMode = ProBuilderEditor . selectMode ;
322322
323+ // A small epsilon is added to avoid the created face being detected as a degenerate triangle
324+ const float epsilon = .00001f ;
325+
323326 foreach ( var mesh in selection )
324327 {
325328 switch ( selectMode )
@@ -329,7 +332,7 @@ static void Extrude()
329332 goto default ;
330333
331334 Edge [ ] newEdges = mesh . Extrude ( mesh . selectedEdges ,
332- 0f ,
335+ epsilon ,
333336 s_ExtrudeEdgesAsGroup ,
334337 ProBuilderEditor . s_AllowNonManifoldActions ) ;
335338
@@ -345,7 +348,7 @@ static void Extrude()
345348
346349 if ( len > 0 )
347350 {
348- mesh . Extrude ( mesh . selectedFacesInternal , s_ExtrudeMethod , 0f ) ;
351+ mesh . Extrude ( mesh . selectedFacesInternal , s_ExtrudeMethod , epsilon ) ;
349352 mesh . SetSelectedFaces ( mesh . selectedFacesInternal ) ;
350353 ef += len ;
351354 }
You can’t perform that action at this time.
0 commit comments