Commit Graph

11 Commits

Author SHA1 Message Date
Jack Porter
4a2d4cafbd Fix issues with landscape ES2 data being overwriting PC data causing issues with component weightmaps when launching or using the mobile previewer multiple times. (UE-10421 / UE-12441)
[CL 2529858 by Jack Porter in Main branch]
2015-04-29 03:18:59 -04:00
Gareth Martin
c9cccf18db Fix applying splines to a non-blended landscape layer treating it as a blended layer
[CL 2510458 by Gareth Martin in Main branch]
2015-04-13 12:36:51 -04:00
Marc Audy
a509e739ad Fix shadow variables
[CL 2508945 by Marc Audy in Main branch]
2015-04-10 16:47:24 -04:00
Dan Oconnor
f4d3d65662 PR #968: Fixing PVS-Studio warnings (Contributed by PaulEremeeff)
These can be generally described as removing redundant condition checks, using logical operators instead of bitwise operators, removal of redundant parenthesis, and consistent use of pragma push and pragma pop. There is very little observable behavior change in this CL.

Changes that required further review are pending in 2489753

[CL 2489804 by Dan Oconnor in Main branch]
2015-03-24 15:51:28 -04: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
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
Mike Fricker
86e86198df Fixed a memory leak with landscape editing
[CL 2388611 by Mike Fricker in Main branch]
2014-12-15 11:35:11 -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
Matthew Griffin
f1c4513760 Renaming FVector ClampSize and SafeNormal functions for clarity
Used DEPRECATED Macro to keep old names around in case I've missed anything

[CL 2370785 by Matthew Griffin in Main branch]
2014-11-26 10:01:12 -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
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