Pcbnew: bezier tool fix width on subsequent curves

This got broken by the changed start logic in a3f239ce5e.
This commit is contained in:
John Beard 2024-11-28 19:15:51 +08:00
parent 6686ade45b
commit dad07f590a

View File

@ -2937,6 +2937,10 @@ std::unique_ptr<PCB_SHAPE> DRAWING_TOOL::drawOneBezier( const TOOL_EVENT& aToo
setCursor();
// Init the new item attributes
// (non-geometric, those are handled by the manager)
bezier->SetShape( SHAPE_T::BEZIER );
bezier->SetStroke( m_stroke );
bezier->SetLayer( m_layer );
grid.SetSnap( !evt->Modifier( MD_SHIFT ) );
@ -2996,11 +3000,6 @@ std::unique_ptr<PCB_SHAPE> DRAWING_TOOL::drawOneBezier( const TOOL_EVENT& aToo
m_controls->SetAutoPan( true );
m_controls->CaptureCursor( true );
// Init the new item attributes
// (non-geometric, those are handled by the manager)
bezier->SetShape( SHAPE_T::BEZIER );
bezier->SetStroke( m_stroke );
if( !m_view->IsLayerVisible( m_layer ) )
{
m_frame->GetAppearancePanel()->SetLayerVisible( m_layer, true );