Skip to content

Commit

Permalink
fix "winding: index out of bounds" when highlighting brush components…
Browse files Browse the repository at this point in the history
… during undo/redo
  • Loading branch information
Garux committed Oct 20, 2024
1 parent 4909d59 commit 1b0e573
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radiant/brush.h
Original file line number Diff line number Diff line change
Expand Up @@ -3764,6 +3764,7 @@ class BrushInstance :
}
}
void gatherComponentsHighlight( std::vector<std::vector<Vector3>>& polygons, SelectionIntersection& intersection, SelectionTest& test, SelectionSystem::EComponentMode mode ) const {
m_brush.evaluateBRep(); // highlight() may happen right next to undo(), hence care to evaluate; normally render() triggers this beforehand
test.BeginMesh( localToWorld() );

switch ( mode )
Expand Down

0 comments on commit 1b0e573

Please sign in to comment.