mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-15 10:43:15 +02:00
Pcbnew: bezier tool fix width on subsequent curves
This got broken by the changed start logic in a3f239ce5e.
This commit is contained in:
parent
6686ade45b
commit
dad07f590a
@ -2937,6 +2937,10 @@ std::unique_ptr<PCB_SHAPE> DRAWING_TOOL::drawOneBezier( const TOOL_EVENT& aToo
|
|||||||
|
|
||||||
setCursor();
|
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 );
|
bezier->SetLayer( m_layer );
|
||||||
|
|
||||||
grid.SetSnap( !evt->Modifier( MD_SHIFT ) );
|
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->SetAutoPan( true );
|
||||||
m_controls->CaptureCursor( 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 ) )
|
if( !m_view->IsLayerVisible( m_layer ) )
|
||||||
{
|
{
|
||||||
m_frame->GetAppearancePanel()->SetLayerVisible( m_layer, true );
|
m_frame->GetAppearancePanel()->SetLayerVisible( m_layer, true );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user