fixed in pcbnew: module copy: bad 3d shape list copy.
This commit is contained in:
parent
20cb87a8b7
commit
9aba378fac
|
@ -70,7 +70,7 @@ MODULE::MODULE( BOARD* parent ) :
|
||||||
m_Value = new TEXTE_MODULE( this, TEXT_is_VALUE );
|
m_Value = new TEXTE_MODULE( this, TEXT_is_VALUE );
|
||||||
// m_Value->SetBack( this );
|
// m_Value->SetBack( this );
|
||||||
|
|
||||||
m_3D_Drawings.PushBack( new S3D_MASTER( this ) );
|
m_3D_Drawings.PushBack( new S3D_MASTER( this ) ); // Reserve one void 3D entry
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -138,10 +138,16 @@ void MODULE::Copy( MODULE* aModule )
|
||||||
|
|
||||||
for( S3D_MASTER* item = aModule->m_3D_Drawings; item; item = item->Next() )
|
for( S3D_MASTER* item = aModule->m_3D_Drawings; item; item = item->Next() )
|
||||||
{
|
{
|
||||||
S3D_MASTER* t3d = new S3D_MASTER( this );
|
S3D_MASTER* t3d = m_3D_Drawings;
|
||||||
|
if ( t3d && t3d->m_Shape3DName.IsEmpty() )
|
||||||
|
t3d->Copy( item );
|
||||||
|
else
|
||||||
|
{
|
||||||
|
t3d = new S3D_MASTER( this );
|
||||||
t3d->Copy( item );
|
t3d->Copy( item );
|
||||||
m_3D_Drawings.PushBack( t3d );
|
m_3D_Drawings.PushBack( t3d );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Copie des elements complementaires */
|
/* Copie des elements complementaires */
|
||||||
m_Doc = aModule->m_Doc;
|
m_Doc = aModule->m_Doc;
|
||||||
|
|
Loading…
Reference in New Issue