Pcbnew: force courtyard area shape rebuild afret rotation/flip.

Fixes #13039
https://gitlab.com/kicad/code/kicad/issues/13039
This commit is contained in:
jean-pierre charras 2022-11-30 09:07:32 +01:00
parent 8c468dcffc
commit ec4fd42bee
1 changed files with 3 additions and 0 deletions

View File

@ -1558,6 +1558,7 @@ void FOOTPRINT::Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle )
m_visibleBBoxCacheTimeStamp = 0;
m_textExcludedBBoxCacheTimeStamp = 0;
m_hullCacheTimeStamp = 0;
m_courtyard_cache_timestamp = 0;
}
@ -1646,6 +1647,7 @@ void FOOTPRINT::Flip( const VECTOR2I& aCentre, bool aFlipLeftRight )
m_boundingBoxCacheTimeStamp = 0;
m_visibleBBoxCacheTimeStamp = 0;
m_textExcludedBBoxCacheTimeStamp = 0;
m_courtyard_cache_timestamp = 0;
m_cachedHull.Mirror( aFlipLeftRight, !aFlipLeftRight, m_pos );
@ -1833,6 +1835,7 @@ void FOOTPRINT::SetOrientation( const EDA_ANGLE& aNewAngle )
m_boundingBoxCacheTimeStamp = 0;
m_visibleBBoxCacheTimeStamp = 0;
m_textExcludedBBoxCacheTimeStamp = 0;
m_courtyard_cache_timestamp = 0;
m_cachedHull.Rotate( angleChange, GetPosition() );
}