mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Made the flipped y-axis on terrain import optional.
Pass a final boolean argument to TerrainBlock::import to control y-axis flipping. It is enabled by default, since this was the previous default behavior. This should be added as an option in the terrain import dialog - see game/tools/worldEditor/gui/guiTerrainImportGui.gui
This commit is contained in:
parent
256735e35c
commit
6ff1db6c0c
4 changed files with 48 additions and 18 deletions
|
|
@ -152,7 +152,8 @@ public:
|
|||
void import( const GBitmap &heightMap,
|
||||
F32 heightScale,
|
||||
const Vector<U8> &layerMap,
|
||||
const Vector<String> &materials );
|
||||
const Vector<String> &materials,
|
||||
bool flipYAxis = true );
|
||||
|
||||
/// Updates the terrain grid for the specified area.
|
||||
void updateGrid( const Point2I &minPt, const Point2I &maxPt );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue