Skip to content

Commit 830a188

Browse files
Fixed an issue where faces being extruded using the shift+click were invisible (#621)
1 parent 9bc1a05 commit 830a188

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

Editor/EditorCore/VertexManipulationTool.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)