Temporary fix to disable zone-zone clearance display
When selecting two objects, we display the measured clearance between
them. This can be problematic with large zones as they have thousands
of triangles.
This is a temporary fix for 8.0.1 to disable the check until we have a
performant version
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17327
(cherry picked from commit 686a62cbe6
)
This commit is contained in:
parent
2f010e77ea
commit
51d335c0e8
|
@ -1588,15 +1588,16 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
|
|||
PCB_LAYER_ID layer = overlap.CuStack().front();
|
||||
|
||||
constraint = drcEngine->EvalRules( CLEARANCE_CONSTRAINT, a, b, layer );
|
||||
msgItems.emplace_back( _( "Resolved clearance" ),
|
||||
m_frame->MessageTextFromValue( constraint.m_Value.Min() ) );
|
||||
|
||||
if( a->Type() != PCB_ZONE_T || b->Type() != PCB_ZONE_T )
|
||||
{
|
||||
std::shared_ptr<SHAPE> a_shape( a_conn->GetEffectiveShape( layer ) );
|
||||
std::shared_ptr<SHAPE> b_shape( b_conn->GetEffectiveShape( layer ) );
|
||||
|
||||
int actual_clearance = a_shape->GetClearance( b_shape.get() );
|
||||
|
||||
msgItems.emplace_back( _( "Resolved clearance" ),
|
||||
m_frame->MessageTextFromValue( constraint.m_Value.Min() ) );
|
||||
|
||||
if( actual_clearance > -1 && actual_clearance < std::numeric_limits<int>::max() )
|
||||
{
|
||||
msgItems.emplace_back( _( "Actual clearance" ),
|
||||
|
@ -1604,6 +1605,7 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( ( a->HasHole() || b->HasHole() ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue