Pcbnew: fix VRML export dialog settings having no effect. (fixes lp:1529214)

This commit is contained in:
Element Green 2016-02-08 19:58:21 -05:00 committed by Wayne Stambaugh
parent 509e71fdb3
commit 14363262c2
1 changed files with 3 additions and 3 deletions

View File

@ -206,6 +206,9 @@ void PCB_EDIT_FRAME::OnExportVRML( wxCommandEvent& event )
dlg.FilePicker()->SetPath( fn.GetFullPath() ); dlg.FilePicker()->SetPath( fn.GetFullPath() );
dlg.SetSubdir( subDirFor3Dshapes ); dlg.SetSubdir( subDirFor3Dshapes );
if( dlg.ShowModal() != wxID_OK )
return;
double aXRef = dlg.GetXRef(); double aXRef = dlg.GetXRef();
double aYRef = dlg.GetYRef(); double aYRef = dlg.GetYRef();
@ -221,9 +224,6 @@ void PCB_EDIT_FRAME::OnExportVRML( wxCommandEvent& event )
bool useRelativePaths = dlg.GetUseRelativePathsOption(); bool useRelativePaths = dlg.GetUseRelativePathsOption();
bool usePlainPCB = dlg.GetUsePlainPCBOption(); bool usePlainPCB = dlg.GetUsePlainPCBOption();
if( dlg.ShowModal() != wxID_OK )
return;
last_vrmlName = dlg.FilePicker()->GetPath(); last_vrmlName = dlg.FilePicker()->GetPath();
wxFileName modelPath = last_vrmlName; wxFileName modelPath = last_vrmlName;
wxBusyCursor dummy; wxBusyCursor dummy;