Import Wavefront .obj as Terrain mode now works in all map formats.

Import Wavefront .obj as Terrain mode: floor height of each created sector is now set to the average height of an .obj polygon it was created from.
Import Wavefront .obj as Terrain Settings window: added "Use slopes" checkbox. When enabled, the mode will create slopes using vertex height offsets (UDMF) or Floor Vertex Height things (1504).
Fixed, Visual Mode: things were rendered at wrong height after using "Lower/Raise Height" actions in sectors with sloped floor (or ceiling for ceiling-aligned things) 
Fixed: info panel was not updated after switching to another Edit Mode.
This commit is contained in:
MaxED 2014-12-10 21:11:56 +00:00
parent 979244a163
commit 33a35e2148
11 changed files with 145 additions and 41 deletions

View file

@ -541,8 +541,6 @@ namespace CodeImp.DoomBuilder
[STAThread]
internal static void Main(string[] args)
{
Uri localpath;
// Determine states
#if DEBUG
debugbuild = true;
@ -571,7 +569,7 @@ namespace CodeImp.DoomBuilder
thisasm = Assembly.GetExecutingAssembly();
// Find application path
localpath = new Uri(Path.GetDirectoryName(thisasm.GetName().CodeBase));
Uri localpath = new Uri(Path.GetDirectoryName(thisasm.GetName().CodeBase));
apppath = Uri.UnescapeDataString(localpath.AbsolutePath);
// Setup directories