Commit Graph

567 Commits

Author SHA1 Message Date
James Hopkin
229ec5938e #core Added derived->base conversion for TAssetPtr. Tidied up some other dangerous/unnecessary conversions too (operator bool -> TYPE_OF_NULL constructor was the conversion that bit me).
#codereview Steve.Robb

[CL 2489047 by James Hopkin in Main branch]
2015-03-24 05:14:13 -04:00
Robert Manuszewski
9ac96bec76 When cancelling async loading, only kill objects created during async loading if they haven't finished loading yet.
Due to recent changes, some of the objects inside FAsyncObjectsReferencer can come from packages that have previously been loaded.

[CL 2487918 by Robert Manuszewski in Main branch]
2015-03-23 12:17:55 -04:00
Dan Oconnor
06806b2237 PR #946: Fixing PVS-Studio warning (Contributed by PaulEremeeff)
https://github.com/EpicGames/UnrealEngine/pull/946

I have gone through these changes and verified that whatever behavior change they cause could only be an improvement (generally they just prevent possible access to nullptrs, but there are also some style corrections). A separate changelist is being prepared that includes changes that could unintentionally caues behavior change for the worse.

[CL 2486801 by Dan Oconnor in Main branch]
2015-03-20 17:18:31 -04:00
Maciej Mroz
d54c8546f4 GitHub 944 : UE-12128: Properly save structs when struct field default value is different
[CL 2486428 by Maciej Mroz in Main branch]
2015-03-20 14:00:01 -04:00
Zak Middleton
1050b18489 #ue4 - Add fast Cast flag for UStaticMeshComponent.
- Touched UBT and UHT to force rebuilds (they don't seem to pick up the change in core dependency).

[CL 2485559 by Zak Middleton in Main branch]
2015-03-19 21:31:02 -04:00
Robert Manuszewski
14f9ba1fb1 Fixed subobject instancing when creating new objects from a non-CDO template.
Added GetDefaultSubobjects and GetDefaultSubobjectByName helper functions to UObject.

[CL 2484298 by Robert Manuszewski in Main branch]
2015-03-19 07:49:15 -04:00
Jaroslaw Palczynski
761d45456e UE-5538: Map doesn't load the asset reference if the asset isn't saved when the map was saved.
Added new package flag to indicate that this package was newly created in the editor. Then linker can treat it similarily as it treated compiled-in packages, just look for objects inside. This flag is cleared when saving the package.

#codereview Robert.Manuszewski

[CL 2484156 by Jaroslaw Palczynski in Main branch]
2015-03-19 04:08:26 -04:00
Maciej Mroz
86317c461a UE-12004 Hit an ensure during BP compile
Limited and necessary support for static arrays in BP Compiler.

#codereview Nick.Whiting, Mike.Beach

[CL 2483830 by Maciej Mroz in Main branch]
2015-03-18 20:10:58 -04:00
Marc Audy
5c936c7c3e Remove virtual from BlueprintImplementableEvents that have clear native virtual already
[CL 2483629 by Marc Audy in Main branch]
2015-03-18 17:50:49 -04:00
Robert Manuszewski
92a07b505c Fix for crashes when GC is triggered while streaming.
[CL 2482878 by Robert Manuszewski in Main branch]
2015-03-18 06:53:36 -04:00
Jaroslaw Palczynski
10b16457d6 Missing chage for 2481360. Still outcome of previous P4 failure.
[CL 2481381 by Jaroslaw Palczynski in Main branch]
2015-03-17 06:48:58 -04:00
Jaroslaw Palczynski
f23f29257b Back out changelist 2481333
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over.

#codereview Robert.Manuszewski

[CL 2481343 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:38:32 -04:00
Jaroslaw Palczynski
fa31560e2d Enabled UHT to digest GENERATED_BODY instead of GENERATED_UCLASS_BODY, GENERATED_USTRUCT_BODY, GENERATED_UINTERFACE_BODY or GENERATED_IINTERFACE_BODY, changed every occurence to the new syntax and fixed every warning that have fallen out of this change.
#codereview Robert.Manuszewski

[CL 2481333 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:19:11 -04:00
Maciej Mroz
74e39a4271 #ue4 -Serialization code in UStructProperty moved to static function
-UScriptStruct::CompareScriptStruct function is accesible in other modules
-Call Function BP node works better with CustomStructureParam.

[CL 2479631 by Maciej Mroz in Main branch]
2015-03-14 20:27:46 -04:00
Marc Audy
149a75aa4f Fix compile issues
[CL 2477369 by Marc Audy in Main branch]
2015-03-12 16:02:38 -04:00
Ben Marsh
0dd7eaebff Add a specific "compatible with engine version" field to the package file summary, to make it possible to share packages between Rocket and Perforce builds in hotfixes.
[CL 2475326 by Ben Marsh in Main branch]
2015-03-11 13:18:45 -04:00
Maciej Mroz
dc1e21178c Fix for crash in Deferred Loading when an asset is missing.
#codereview Mike.Beach

[CL 2474276 by Maciej Mroz in Main branch]
2015-03-10 16:37:00 -04:00
Jaroslaw Surowiec
c0584e2b8e Stats - Fixes
[CL 2473748 by Jaroslaw Surowiec in Main branch]
2015-03-10 10:22:11 -04:00
Steve Robb
6f5860606b Unicast delegate lookup/removal no longer creates a delegate to do that.
static_asserts to ensure that TScriptDelegate and TWeakObjectPtr are constructed with the expected base classes.
Missing FWeakObjectPtr::GetEvenIfUnreachable implementation added.
TWeakObjectPtr::Get and TWeakObjectPtr::GetEvenIfUnreachable forwarded instead of being reimplemented.
New TScriptDelegate::IsBoundToObjectEvenIfUnreachable and TScriptDelegate::GetUObjectEvenIfUnreachable functions.
Some TScriptDelegate implementation changed to use TArray algorithms.

#codereview robert.manuszewski,max.preussner

[CL 2473694 by Steve Robb in Main branch]
2015-03-10 09:42:50 -04:00
Phillip Kavan
7868f004f9 [UE-10647] Hook up '-scriptstackonwarnings' to FFrame::KismetExecutionMessage()
[CL 2473096 by Phillip Kavan in Main branch]
2015-03-09 17:56:26 -04:00
Maciej Mroz
2e71ac300c UE-8677 Adding a protected component to a class and performing a hot reload can crash the Editor if a Blueprint already exists that is derived from that class
Overriden Archetype for old CDO while hot reloading.

#codereview Robert.Manuszewski

[CL 2472887 by Maciej Mroz in Main branch]
2015-03-09 15:41:53 -04:00
Mikolaj Sieluzycki
dfa3e7bf1d Force formatted assertion macros to require output message.
#codereview Steve.Robb

[CL 2472200 by Mikolaj Sieluzycki in Main branch]
2015-03-09 05:06:22 -04:00
Mike Beach
f615cb010f [UE-9824] NonUnity build fix... forward declaring our TLinkerImportPlaceholder<> specializations.
[CL 2471679 by Mike Beach in Main branch]
2015-03-06 17:41:27 -05:00
Michael Schoell
f48065a8ac When calling UField::GetToolTipText, if there is no native tooltip, the UField's name will be returned as a sanitized display string.
#jira UE-7136 - Blueprints: Tool-tips for functions shows FName instead of sanitized name

[CL 2471539 by Michael Schoell in Main branch]
2015-03-06 15:56:43 -05:00
Mike Beach
9102b465aa [UE-9824] Fixing fallout from CL 2471336 (missing include, making shared code truly generic).
#codereview Maciej.Mroz, Robert.Manuszewski

[CL 2471467 by Mike Beach in Main branch]
2015-03-06 14:34:01 -05:00