Commit Graph

47 Commits

Author SHA1 Message Date
Mike Fricker
114458bf0f Clang warning fixes: Fixed missing 'override' specifiers
- Also removed some unreferenced functions that adding 'override' revealed

PR #1002 -- Thank you, Omar007!

[CL 2498415 by Mike Fricker in Main branch]
2015-04-01 07:20:55 -04:00
Dmitriy Dyomin
fcd4e0bb55 Fixed landscape tools to work with cross-level foliage
Fixed landscape retopologize tool that was losing foliage links

[CL 2469877 by Dmitriy Dyomin in Main branch]
2015-03-05 03:28:09 -05:00
Dmitriy Dyomin
72c73d81e7 Fixed: Deleting landscape components should remove attached foliage
UE-11275

[CL 2468634 by Dmitriy Dyomin in Main branch]
2015-03-04 06:09:56 -05:00
Mikolaj Sieluzycki
fa01cacb6c Trim down the amount of UObject constructors.
#codereview Robert.Manuszewski

[CL 2429641 by Mikolaj Sieluzycki in Main branch]
2015-02-03 05:40:57 -05:00
Jack Porter
eda2b1251c Fix mac compile error
[CL 2425616 by Jack Porter in Main branch]
2015-01-30 08:52:33 -05:00
Gareth Martin
49c8e1f458 Fixed crash when pasting gizmo paint data to another landscape with a different material or that hasn't had its layer infos configured
[CL 2425566 by Gareth Martin in Main branch]
2015-01-30 08:05:32 -05:00
Mike Fricker
c233de9424 Fixed compile error introduced in cL 2412231
[CL 2412649 by Mike Fricker in Main branch]
2015-01-20 14:43:57 -05:00
Gareth Martin
505b7af648 Fix Landscape copy/paste gizmo bounds being calculated incorrectly. This was causing it to randomly disappear.
Fix Landscape copy/paste gizmo not being selected automatically when entering the copy/paste tool, or importing data into the gizmo, or switching to the gizmo brush, or opening the landscape editor when the copy/paste tool or the gizmo brush was the active tool/brush. This was causing it to unexpectedly not be movable/rotatable/resizable in those situations.
Fix Landscape copy/paste gizmo not being selectable with a single click. Coupled with the previous bug, this was causing a lot of confusion!
A bit of cleanup of the gizmo code:
- the landscape edmode is no-longer responsible for rendering a (0% opacity) box around the gizmo to make it selectable, instead the gizmo itself is now selectable.
- the gizmo frustrum transform is now calculated significantly more sanely!

[CL 2412231 by Gareth Martin in Main branch]
2015-01-20 10:47:28 -05:00
Gareth Martin
e8a46a9744 Fix Landscape region select tool
[CL 2408534 by Gareth Martin in Main branch]
2015-01-16 04:47:23 -05:00
Ori Cohen
9e51521dbe Move foliage into its own module
[CL 2405964 by Ori Cohen in Main branch]
2015-01-14 10:26:59 -05:00
Jack Porter
bce653d631 Fix various landscape LOD discontinuities between neighbors and while texture streaming
[CL 2393633 by Jack Porter in Main branch]
2014-12-19 05:52:40 -05:00
Gareth Martin
33f9fc40c7 Fix utter stupidity
[CL 2392520 by Gareth Martin in Main branch]
2014-12-18 11:03:09 -05:00
Gareth Martin
9317f54da0 Fix "LandscapeEdModeComponentTools.cpp:1494:10: error: expected a class or namespace"
[CL 2392511 by Gareth Martin in Main branch]
2014-12-18 11:02:27 -05:00
Gareth Martin
d9e53f7b12 Optimized landscape editing significantly by removing the TMap of brush points and replacing it with a 2D array of data (FLandscapeBrushData class)
Most code accessing brush/landscape data by calculating indexes (e.g. Data + (Y-Y1)*XSize + (X-X1)) replaced with scanline[X] style for speed
LandscapeInfo->SelectedRegion is now only queried if it contains anything, to avoid hashing the key unneccessarily (the hash function was showing on profiles :( )
Smoothing tool's SmoothFilterKernel*Scale* replaced by the more intuitive Size
Component brush fixed to be properly centered on the cursor at odd sizes and work correctly with the add component tool when cursor is over the landscape (but part of the brush is off the landscape) and size is >1
Copy tool fixed to copy the selected area and not a circle when using ctrl+c
Also a few style cleanups. for (auto it = xyz.CreateIterator...) replaced with ranged for, enums replaced with enum classes, 0.f -> 0.0f, NULL->nullptr, etc.

[CL 2392355 by Gareth Martin in Main branch]
2014-12-18 06:52:06 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Gareth Martin
d7a6c2cff8 Fix landscape copy/paste tool in the all layers case
[CL 2356875 by Gareth Martin in Main branch]
2014-11-12 05:09:02 -05:00
Mikolaj Sieluzycki
51f5333986 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356864 by Mikolaj Sieluzycki in Main branch]
2014-11-12 04:58:53 -05:00
Jaroslaw Palczynski
1b50963ccd Landscape module from Engine split out.
[CL 2331341 by Jaroslaw Palczynski in Main branch]
2014-10-16 05:16:44 -04:00
Gareth Martin
ecdd80244f Improve landscape sculpting tool, it's now continuous and framerate-independent
Refactored landscape tool strokes somewhat, removing unnecessary virtual functions (most of the stroke classes were single-level hierarchies, making virtuals pointless), empty functions and unnecessary dynamic allocation (using refactored TOptional)

[CL 2293878 by Gareth Martin in Main branch]
2014-09-11 12:44:16 -04:00
Lina Halper
e513ea2300 Named FMatrix/FTransform unsafe Inverse to InverseFast, and InverseSafe,InverseSlow to Inverse as people often use Inverse as default function.
- Inverse was one of the main reasons of crashes via lots of functions. Seems making default Inverse to be safer version seems better.

[CL 2255081 by Lina Halper in Main branch]
2014-08-13 15:29:41 -04:00
Jack Porter
6536784681 Fix for the Move to Level tool on landscape with painted layers causing broken references on save
[CL 2252547 by Jack Porter in Main branch]
2014-08-12 08:03:05 -04:00
Ben Marsh
a414e0be0c [INTEGRATE] 4.4 branch back to main.
[CL 2251491 by Ben Marsh in Main branch]
2014-08-11 11:51:02 -04:00
Jack Porter
0e0e8c8af3 Fix crash due to the the heightmap texture being locked twice when adding components with XY offset.
TTP#343040

[CL 2245619 by Jack Porter in Main branch]
2014-08-06 11:26:29 -04:00
Sangwoo Lee
a746b2ab21 Landscape : Fixed Add Component regression (no interpolation height, TTP #343057)
#code_review jack.porter

[CL 2245307 by Sangwoo Lee in Main branch]
2014-08-06 03:54:25 -04:00
Mikolaj Sieluzycki
b2a114be70 Header cleanup: Engine module, Landscape headers.
[CL 2242422 by Mikolaj Sieluzycki in Main branch]
2014-08-04 10:14:05 -04:00