fixed in pcbnew: module copy: bad 3d shape list copy.

This commit is contained in:
charras 2009-04-15 07:20:30 +00:00
parent 9aba378fac
commit 7cd50d33a0
1 changed files with 3 additions and 1 deletions

View File

@ -138,8 +138,10 @@ void MODULE::Copy( MODULE* aModule )
for( S3D_MASTER* item = aModule->m_3D_Drawings; item; item = item->Next() )
{
if ( item->m_Shape3DName.IsEmpty() ) // do not copy empty shapes.
continue;
S3D_MASTER* t3d = m_3D_Drawings;
if ( t3d && t3d->m_Shape3DName.IsEmpty() )
if ( t3d && t3d->m_Shape3DName.IsEmpty() ) // The first entry can exist, but is empty : use it.
t3d->Copy( item );
else
{