Pcbnew: fix VRML export dialog settings having no effect. (fixes lp:1529214)
This commit is contained in:
parent
509e71fdb3
commit
14363262c2
|
@ -206,6 +206,9 @@ void PCB_EDIT_FRAME::OnExportVRML( wxCommandEvent& event )
|
|||
dlg.FilePicker()->SetPath( fn.GetFullPath() );
|
||||
dlg.SetSubdir( subDirFor3Dshapes );
|
||||
|
||||
if( dlg.ShowModal() != wxID_OK )
|
||||
return;
|
||||
|
||||
double aXRef = dlg.GetXRef();
|
||||
double aYRef = dlg.GetYRef();
|
||||
|
||||
|
@ -221,9 +224,6 @@ void PCB_EDIT_FRAME::OnExportVRML( wxCommandEvent& event )
|
|||
bool useRelativePaths = dlg.GetUseRelativePathsOption();
|
||||
bool usePlainPCB = dlg.GetUsePlainPCBOption();
|
||||
|
||||
if( dlg.ShowModal() != wxID_OK )
|
||||
return;
|
||||
|
||||
last_vrmlName = dlg.FilePicker()->GetPath();
|
||||
wxFileName modelPath = last_vrmlName;
|
||||
wxBusyCursor dummy;
|
||||
|
|
Loading…
Reference in New Issue