Commit Graph

240 Commits

Author SHA1 Message Date
Andrew Rodham
3ac1e0da19 Added editor project setting to define whether to display units in imperial or metric (or not at all)
Also added a default input unit that is used when no units are specified on a text input.

This addresses UE-11863 and UE-9313

[CL 2499638 by Andrew Rodham in Main branch]
2015-04-02 05:30:34 -04:00
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
Robert Manuszewski
8fe5db30e3 Merging UE4-Streaming to UE4
- Linkers are no longer UObjects. Renamed ULinker, ULinkerLoad and ULinkerSave to FLinker, FLinkerLoad, FLinkerSave respectively
- Linkers are now associated with their UPackages
- Linker version is now stored in UPackages
- Async loading is now performed on a separate thread (if platform supports it and only in cooked builds), with the exception of PostLoad which is still done on the game thread
- Added UObject::IsPostLoadThreadSafe() function to determine if PostLoad is thread safe and can be executed on the async loading thread (defaults to false)
- UObject creation is now thread safe and can be performed on any thread
- Move many of the linker/UObject globals into FUObjectThreadContext (TLS)
- GetAsyncLoadPercentage() now takes PostLoad into account
- More async loading stats
- Added AtomicallySetFlags/ClearFlags to UObject
- Made FModuleManager thread safe.
- Added FGCScopeGuard as means of preventing GC from executing from non-game thread
- It's possible to disable async loading thread through ini settings.
- Cancelling async loading will now also trigger GC
- Implemented a basic version of async streaming priorities.

Change 2410813 by Mikolaj Sieluzycki:
	Change Sleep in while loop to ConditionalSleep in FMultiReaderSingleWriterGT
Change 2410734 by Mikolaj Sieluzycki:
	Make FModuleManager thread safe.
Change 2399879 by Mikolaj Sieluzycki:
	Basic version of async streaming priorities.
Change 2410707 by Mikolaj Sieluzycki:
	Implement conditional and no stat versions of sleep.
Change 2371939 by Robert Manuszewski:
	Async Loading Improvements: adding more stats (accumulators)
Change 2372403 by Robert Manuszewski:
	Fixing compile errors when STATs are not enabled
Change 2371526 by Robert Manuszewski:
	AsyncLoading Improvements (WIP)
Change 2407198 by Robert Manuszewski:
	Re-implementing delegate fixes for Async Loading
Change 2407425 by Robert Manuszewski:
	Re-implementing cancelling async loading in the async loading branch.
Change 2484362 by Robert Manuszewski:
	Making it possible to disable async loading thread through ini settings.
Change 2484744 by Robert Manuszewski:
	Minimizing locks in GC and other threads when handling UObjects
Change 2480190 by Robert Manuszewski:
	Fixing infinite stall after canceling async loading in non-cooked builds
Change 2484268 by Robert Manuszewski:
	Fixing crash when allocating permanent object pool.
Change 2489761 by Robert Manuszewski:
	Fixing BulkData using linker archive on the main thread even if the linker was created on the async loading thread.
Change 2493624 by Robert Manuszewski:
	Cancelling async loading will now also trigger GC
Change 2487881 by Robert Manuszewski:
	Making ShaderIdMap operations thread safe.
Change 2488067 by Robert Manuszewski:
	Fixing GetAsyncLoadPercentage. It will now also respect PostLoad.
Change 2458640 by Robert Manuszewski:
	Fixing crash in PIE
Change 2458825 by Robert Manuszewski:
	Fixing a few crashes when streaming and the package is missing.
Change 2476935 by Robert Manuszewski:
	Fixing crash while async loading ANavigationData
Change 2477361 by Robert Manuszewski:
	Fixing crashes in cooked game
Change 2480095 by Robert Manuszewski:
	Making FUObjectArray more thread safe
Change 2475443 by Robert Manuszewski:
	Re-enabling single-threaded async loading path for the editor and platforms that don't support multithreading.
Change 2475458 by Robert Manuszewski:
	Making sure bulk data is only loaded on a separate thread if it's not being loaded on the async loading thread.
Change 2476661 by Robert Manuszewski:
	Fixing FlushAsyncLoading not flushing everything
Change 2401089 by Jaroslaw Surowiec:
	Core - Added AtomicallySetFlags/ClearFlags to UObject, added a comment to ThisThreadAtomicallyClearedRFUnreachable

[CL 2498249 by Robert Manuszewski in Main branch]
2015-04-01 03:03:18 -04:00
PaulEremeeff
3d878d5a79 PR #996: Fixing PVS-Studio warnings (Contributed by PaulEremeeff)
I have reviewed each change carefully, but it is a large change and I could have missed something! Here is a summary of the types of changes in this CL:
 * Made nullptr checks consistent (the plurality of the changes are of this type)
 * Completed switch statements (IE, switch did not explicitly handle default case, but had unhandled enum entries - this is the second most popular type of fix)
 * Removed unused variables
 * Removed redundant initializations
 * WidgetNavigationCustomization.cpp was fixed by the owner
 * integers converted to floats where result was stored in a float
 * Removed redundent null checks (e.g. before delete statements)
 * Renamed variables to prevent non-obvious shadowing
 * Fixed use of bitwise & when checking for equality to an enum entry (which is often 0)
 * Fixes for some copy paste errors (e.g. FoliageEdMode.cpp)

[CL 2498053 by Dan Oconnor in Main branch]
2015-03-31 20:12:31 -04:00
Frank Fella
b4b140e054 UMG - Don't allow adding keyframes from the details panel when there is no animation selected.
Jira: UE-11420

[CL 2493767 by Frank Fella in Main branch]
2015-03-27 10:29:42 -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
Matt Kuhlenschmidt
1fd2185269 Fix empty categories in UMG
[CL 2486591 by Matt Kuhlenschmidt in Main branch]
2015-03-20 15:26:20 -04:00
Marc Audy
46d32553c4 Allow property node to be overriden as read-only
#codereview Matt.Kuhlenschmidt

[CL 2478684 by Marc Audy in Main branch]
2015-03-13 12:41:11 -04:00
Nick Darnell
9d827fc66f Editor/Engine - The asset picker property editor now supports filtering on interfaces. It expands any AllowedClasses that are interfaces into the classes that implement the interface that are in memory. Now using it on the Blendables array in the post process volume to limit what is displayed. The blendables are also no longer in the Misc category.
[CL 2476615 by Nick Darnell in Main branch]
2015-03-12 06:32:58 -04:00
Marc Audy
037d007078 Fix shadowed variables
[CL 2471506 by Marc Audy in Main branch]
2015-03-06 15:13:38 -05:00
Saul Abreu
79a26091bf Fixed behavior on FString::ParseIntoArray (muliple delimiters overload) functionality to support optionally culling empty strings. Greatly simplified implementation logic. Output parameter now properly named and taken by reference.
#codereview Steve.Robb, Robert.Manuszewski

[CL 2466824 by Saul Abreu in Main branch]
2015-03-02 15:51:37 -05:00
Matt Kuhlenschmidt
81d884107c Fixed color picker constantly closing when editing some blueprint properties
[CL 2454962 by Matt Kuhlenschmidt in Main branch]
2015-02-21 16:46:35 -05:00
Bob Tellez
b8db9d318c Merging CL#2453328 using UT_To_UE4. Fixing a crash when trying to convert an enum to a string or text when the value of the enum is outside it's bounds.
[CL 2453403 by Bob Tellez in Main branch]
2015-02-20 12:24:15 -05:00
Jamie Dale
06ab441b31 Cleaned up the parent class tree when adding new component classes
UE-9554 - Add BP/C++ Component's Show all classes list not expanded by default

It now hides the Object root if UObject is not a valid base class type, as this allows the next level of classes to be expanded out which looks much better when adding new component classes.

This involved a lot of shuffling of module dependencies so that we could link GameProjectGeneration to ClassViewer, as previously ClassViewer was directly linking to GameProjectGeneration.

I went through and fixed everything that was linking to GameProjectGeneration to instead list it as a dynamic dependency (which it is, as nothing needs to link to it), and then verified that everything was using ClassViewer correctly (found some places that were only marking it as a dynamic dependency without also adding it as an include module, causing issues with missing API macro definitions as they were including ClassViewer headers via a relative include path).

#codereview Andrew.Rodham

[CL 2451499 by Jamie Dale in Main branch]
2015-02-19 08:07:13 -05:00
Matthew Griffin
5e350e8eb4 [INTEGRATE] Change 2444702 by Nick.Darnell@Nick.Darnell_Dev on 2015/02/13 09:57:20
UE-9699 - Fixing all the places we were setting the asset size to 0 explictly, the new default reasonable size is .1, all asset pickers now just use the default, unless they're the content browser.

	#lockdown Matt.Kuhlenschmidt

[CL 2449865 by Matthew Griffin in Main branch]
2015-02-18 05:42:18 -05:00
Matthew Griffin
434d573f5c [INTEGRATE] Change 2442262 by Matt.Kuhlenschmidt@matt_kuhlenschmidt_main on 2015/02/11 16:13:30
- Removed colored text from fields in the SCS editor and replaced with "(inherited)"
	https://jira.ol.epicgames.net/browse/UE-9502

[CL 2448738 by Matthew Griffin in Main branch]
2015-02-17 10:31:21 -05:00
Matthew Griffin
d0037af2e7 [INTEGRATE] Change 2436814 by Matt.Kuhlenschmidt@matt_kuhlenschmidt_remote_releases on 2015/02/07 13:41:18
Fix BSP surface selection not appearing if you had a brush selected and then selected a surface

[CL 2446930 by Matthew Griffin in Main branch]
2015-02-16 08:27:43 -05:00
Matthew Griffin
50547c6ca9 [INTEGRATE] Change 2435462 by Nick.Darnell@Nick.Darnell_Dev on 2015/02/06 10:42:03
Editor - The asset pickers now all save their changes to size so that you don't have to resize it every time you go to pick an asset.

[CL 2446740 by Matthew Griffin in Main branch]
2015-02-16 04:35:38 -05:00
Matthew Griffin
af8c523ddd [INTEGRATE] Change 2433594 by Maciej.Mroz@maciej.mroz_D1729_1322 on 2015/02/05 10:21:50
UE-8999 crash editing a public variable in my blueprint

	#codereview Matt.Kuhlenschmidt

[CL 2441372 by Matthew Griffin in Main branch]
2015-02-11 06:13:53 -05:00
Gareth Martin
e9fad0b770 Fix some nonunity fails
[CL 2437836 by Gareth Martin in Main branch]
2015-02-09 07:36:18 -05:00
Mikolaj Sieluzycki
52c71176ab Rename StaticConstructObject to StaticConstructObject_Internal and use it only in CoreUObject module. Change rest of usages to NewObject.
#codereview Robert.Manuszewski

[CL 2437731 by Mikolaj Sieluzycki in Main branch]
2015-02-09 05:43:45 -05:00
Richard TalbotWatkin
2baeab665b Optimizations to details panel when there are many large array properties.
#jira UE-7808 - Editor slows exponentially when selecting an instanced static mesh in viewport that has a large number of instances

[CL 2427864 by Richard TalbotWatkin in Main branch]
2015-02-02 03:29:45 -05:00
Ben Marsh
be3e0d6cd9 [INTEGRATE] Change 2422849 by Dan.Hertzka@Dan.Hertzka_T4682_4010 on 2015/01/28 16:56:45
[UE-8147] - Details window locks as before, updated work with the component tree
	- Once locked, can change component selection to update the details, but the level selection is not affected
	- After unlocking, any component selection will force the level selection to match

[CL 2425907 by Ben Marsh in Main branch]
2015-01-30 11:25:21 -05:00
Ben Marsh
af88cfd933 [INTEGRATE] Change 2421574 by Matt.Kuhlenschmidt@matt_kuhlenschmidt_remote_releases on 2015/01/27 21:12:48
Disable editing of  components created by a construction script on an instance

[CL 2425799 by Ben Marsh in Main branch]
2015-01-30 10:37:32 -05:00
Max Preussner
5e3ee73616 Merging Fix crash clicking on objects with certian class properties (MattK).
using UE4-Releases-4.7-To-UE4

[CL 2420750 by Max Preussner in Main branch]
2015-01-27 13:43:39 -05:00