}
getSurfaceInspector().Update();
- getSurfaceInspector().importData();
+ //getSurfaceInspector().importData(); //happens in .ShowDlg() anyway
getSurfaceInspector().ShowDlg();
}
Select_FitTexture( getSurfaceInspector().m_fitHorizontal, getSurfaceInspector().m_fitVertical );
}
+void SurfaceInspector_FitTextureW(){
+ UndoableCommand undo( "textureAutoFitW" );
+ Select_FitTexture( getSurfaceInspector().m_fitHorizontal, 0 );
+}
+
+void SurfaceInspector_FitTextureH(){
+ UndoableCommand undo( "textureAutoFitH" );
+ Select_FitTexture( 0, getSurfaceInspector().m_fitVertical );
+}
+
static void OnBtnPatchdetails( ui::Widget widget, gpointer data ){
Patch_CapTexture();
}
SurfaceInspector_FitTexture();
}
+static void OnBtnFaceFitW( GtkWidget *widget, gpointer data ){
+ getSurfaceInspector().exportData();
+ SurfaceInspector_FitTextureW();
+}
+
+static void OnBtnFaceFitH( GtkWidget *widget, gpointer data ){
+ getSurfaceInspector().exportData();
+ SurfaceInspector_FitTextureH();
+}
+
+
+
typedef const char* FlagName;
const FlagName surfaceflagNamesDefault[32] = {
}
}
}
+ else{
+ return false;
+ }
return true;
}
};