}
getSurfaceInspector().Update();
- getSurfaceInspector().importData();
+ //getSurfaceInspector().importData(); //happens in .ShowDlg() anyway
getSurfaceInspector().ShowDlg();
}
void SurfaceInspector_FitTextureW(){
UndoableCommand undo( "textureAutoFitW" );
- Select_FitTextureW( getSurfaceInspector().m_fitHorizontal, getSurfaceInspector().m_fitVertical );
+ Select_FitTexture( getSurfaceInspector().m_fitHorizontal, 0 );
}
void SurfaceInspector_FitTextureH(){
UndoableCommand undo( "textureAutoFitH" );
- Select_FitTextureH( getSurfaceInspector().m_fitHorizontal, getSurfaceInspector().m_fitVertical );
+ Select_FitTexture( 0, getSurfaceInspector().m_fitVertical );
}
static void OnBtnPatchdetails( ui::Widget widget, gpointer data ){
}
}
}
+ else{
+ return false;
+ }
return true;
}
};