Merge pull request #268 from eightyeight/terrain-import-flipped

Importing terrain heightmaps flips Y-axis
This commit is contained in:
SilentMike 2013-03-25 14:03:11 -07:00
commit 769268784f
8 changed files with 144 additions and 22 deletions

View file

@ -510,6 +510,26 @@
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiCheckBoxCtrl() {
text = " Flip Y axis?";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
position = "12 222";
extent = "140 30";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "GuiCheckBoxProfile";
visible = "1";
active = "1";
tooltipProfile = "GuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
internalName = "FlipYAxis";
canSave = "1";
canSaveDynamicFields = "0";
};
};
};
//--- OBJECT WRITE END ---
@ -533,6 +553,8 @@ function TerrainImportGui::import( %this )
%metersPerPixel = %this-->MetersPerPixel.getText();
%heightScale = %this-->HeightScale.getText();
%flipYAxis = %this-->FlipYAxis.isStateOn();
// Grab and validate terrain object name.
%terrainName = %this-->TerrainName.getText();
@ -568,7 +590,8 @@ function TerrainImportGui::import( %this )
%metersPerPixel,
%heightScale,
%opacityNames,
%materialNames );
%materialNames,
%flipYAxis );
Canvas.popDialog( %this );