Revert "Fix value field visibility issues when importing Eagle schematics."
This reverts commit 4c5203fabf
.
This commit is contained in:
parent
9298defd3f
commit
366c3e7142
|
@ -1514,15 +1514,10 @@ void SCH_EAGLE_PLUGIN::loadInstance( wxXmlNode* aInstanceNode )
|
|||
|
||||
symbol->GetField( VALUE_FIELD )->SetText( value );
|
||||
|
||||
// Hide the value field if the Eagle "package" element is empty which is the case for most
|
||||
// power symbols which Eagle hides by default or no Eagle "value" element is defined.
|
||||
bool showValueField = !( package.IsEmpty() || !epart->value ||
|
||||
!part->GetFieldById( VALUE_FIELD )->IsVisible() );
|
||||
|
||||
// Set the visibility of fields.
|
||||
symbol->GetField( REFERENCE_FIELD )->SetVisible(
|
||||
part->GetFieldById( REFERENCE_FIELD )->IsVisible() );
|
||||
symbol->GetField( VALUE_FIELD )->SetVisible( showValueField );
|
||||
symbol->GetField( VALUE_FIELD )->SetVisible( part->GetFieldById( VALUE_FIELD )->IsVisible() );
|
||||
|
||||
for( const auto& a : epart->attribute )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue