Commit Graph

332 Commits

Author SHA1 Message Date
Maciej Mroz
11fe6bd1f0 CPF_ContainsInstancedReference in a generated UProperty
- Fix for instanced array properties getting wiped out on recompile

#codereview Phillip.Kavan

[CL 2682293 by Maciej Mroz in Main branch]
2015-09-07 05:35:28 -04:00
Bob Tellez
4a265f8edc [AUTOMERGE]
#UE4 More correctly setting ForceNoResetLoaders when renaming away old graphs. Technically we only need to avoid resetting loadings when regenerating on load so that is what we are doing now.

--------
Integrated using branch Ue4-To-UE4-Fortnite-Simple (reversed) of change#2679917 by Bob.Tellez on 2015/09/03 22:45:05.

[CL 2679918 by Bob Tellez in Main branch]
2015-09-03 22:45:20 -04:00
Bob Tellez
79af138f14 [AUTOMERGE]
#UE4 Fixed a bug where a blueprint compiling on load would have its loader reset, which would cause a pointer to it on the stack (in FKismetCompilerContext::Compile)  to not have a valid export map to patch up later. While technically it shouldnt have to patch up a linker that was reset, there is not a good way to test if a linker has been detached and there does not seem to be a good reason to reset loaders here intentionally. This was causing a crash in PatchNewCDOIntoLinker.

--------
Integrated using branch Ue4-To-UE4-Fortnite-Simple (reversed) of change#2679906 by Bob.Tellez on 2015/09/03 22:27:56.

[CL 2679907 by Bob Tellez in Main branch]
2015-09-03 22:28:16 -04:00
Thomas Sarkanen
2878a344ae Anim Blueprint compiler can now access member variables directly instead of thunking to the VM
Optimization is enabled by default but is an engine setting in case it needs to be disabled (bOptimizeAnimBlueprintMemberVariableAccess).
Expanded FExposedValueHandler to also contain an array of source & dest properties (copy records) to copy between. These are resolved to read/write addresses on init & a simple memcpy at runtime instead of calling the usual generated custom event.
Custom events are not added at all if all properties use copy records. The event may still be added & called however as mixed-mode access is still supported (i.e. a thunk and a memcpy to different pin properties).
Unfortunately this required initialization of all ExposedValueHandlers (as I didnt want to add the branch overhead of lazy init) so all the anim nodes have needed a small change to call their base class Initialize().

[CL 2678504 by Thomas Sarkanen in Main branch]
2015-09-03 09:55:41 -04:00
Benn Gallagher
5315048ee4 [Merging using UE4-Orion-To-UE4] - Added Blend Profiles to USkeleton - Per-Bone blending scales for blend list nodes and state machine transitions.
[CL 2676948 by Benn Gallagher in Main branch]
2015-09-02 10:20:31 -04:00
Martin Wilson
fe159e2c17 Marker based sync
Merged from 2660856

[CL 2662953 by Martin Wilson in Main branch]
2015-08-20 12:52:49 -04:00
Maciej Mroz
96c4b777f1 Proper error for an event node placed in a function graph.
(In Orion branch cl#2659623)

[CL 2659734 by Maciej Mroz in Main branch]
2015-08-18 15:10:44 -04:00
Maciej Mroz
1273b00012 UEBP-40 C++ code generation (WIP):
- skip redundant "switch"

[CL 2657644 by Maciej Mroz in Main branch]
2015-08-17 06:12:13 -04:00
Maciej Mroz
8b021d26b6 UEBP-40 C++ code generation (WIP):
- code was split into many files and refactored
- return and infinite loop fix
- generated code uses "GloballyMappedObjects" instead "LoadObject"
- various improvements

[CL 2657628 by Maciej Mroz in Main branch]
2015-08-17 05:38:30 -04:00
Maciej Mroz
72e5cfaab2 UEBP-40 C++ code generation (WIP):
- timelines
- component delegate binding
- various improvements

[CL 2650820 by Maciej Mroz in Main branch]
2015-08-11 03:47:36 -04:00
Josh Markiewicz
f8d83447e1 #Integration FN->Main from CL#2642868
Engine Source changes

[CL 2645403 by Josh Markiewicz in Main branch]
2015-08-05 15:54:57 -04:00
Mikolaj Sieluzycki
019a8752c3 Fix UEnum issues with incorrect _MAX enum value.
#codereview Robert.Manuszewski

[CL 2644738 by Mikolaj Sieluzycki in Main branch]
2015-08-05 08:56:11 -04:00
Maciej Mroz
2a56e642f6 #jira UE-19425 Crash caused by Cast of nullptr to ArrayProperty
ArrayLibrary functions use ProcessContext also for the Array (not only for the actual context object, that would be always ArrayLibrary CDO)

#codereview Nick.Whiting, Mike.Beach

[CL 2641865 by Maciej Mroz in Main branch]
2015-08-03 09:59:39 -04:00
Maciej Mroz
0ab52c09e4 #jira UE-19419 check Crash failing
Recreating UberGraphFrame for StubAfterFailure compilation is redundant

[CL 2640802 by Maciej Mroz in Main branch]
2015-07-31 15:25:45 -04:00
Maciej Mroz
08af6cf6b5 UEBP-40 C++ code generation (WIP):
- Native Access Specifiers
- FEmitDefaultValueHelper fix/improvements

#codereview Robert.Manuszewski, Nick.Whiting

[CL 2640098 by Maciej Mroz in Main branch]
2015-07-31 06:27:05 -04:00
Michael Schoell
ec5aaa577c Functions correctly inherit purity in Blueprints and will update to reflect the current purity state of the inherited function.
Made accessors to get the Function Entry's flags for the generated UFunction and for retrieval of the final skeleton class's UFunction's flags.

#jira UE-17804 - Overridden functions in Child Blueprints cannot be converted to/from pure functions

[CL 2635959 by Michael Schoell in Main branch]
2015-07-28 16:17:47 -04:00
Bob Tellez
b3b6ef475f Checking in Mikolaj Sieluzycki's change to fix up callsites to ask for the value of an enum entry instead of the index. The value and the index are the same unless the enum specified element values in its declaration (i.e. enum MyEnum { FirstValue = 1 })
[CL 2634487 by Bob Tellez in Main branch]
2015-07-27 16:26:39 -04:00
Maciej Mroz
1fe942a5b2 Ugly fix for legacy parsing code. We should never have 2 different string formats for vector..
#codereview Mike.Beach, Nick.Whiting

[CL 2634131 by Maciej Mroz in Main branch]
2015-07-27 13:40:12 -04:00
Jaroslaw Palczynski
2c16d2b417 FStringAssetReference fixes.
All changes regarding e-mail discussion titled "Asset registry shenanigans".

Changes:
1. Engine now actively is getting rid of short asset paths in FStringAssetReference during saving (for all packages) and loading (only for older packages).
2. Deprecated direct access to FStringAssetReference.AssetLongPathname and exposed it via ToString and SetPath -- SetPath is making sure the path is in correct format. If the path can't be found on disk, the path is cleared.
3. Also access to FStringAssetReference.AssetLongPathnam via Blueprints is guarded using custom Make node function that uses SetPath instead of simple assign.
4. StringAssetReferenceMap will now contain only paths to packages (not objects) and ini references
5. GetDependencies now has additional parameter that lets you chose if it should resolve ini references or not. It was left not as default to keep old behaviour.

[CL 2630589 by Jaroslaw Palczynski in Main branch]
2015-07-23 10:49:29 -04:00
Maciej Mroz
965cce49c3 BytecodeOnly compilation recreates UberGraphPersistentFrame.
#jira UE-15597 Editor crashes upon PIE unless tick is disconnected and reconnected

[CL 2630376 by Maciej Mroz in Main branch]
2015-07-23 06:10:47 -04:00
Max Preussner
eb6a4af8dd MovieScene: Refactored MovieScene and Sequencer to unify the implementation and handling of movie scenes and object bindings
- IMovieSceneAnimation derivatives are now the primary types consumed by Sequencer; they hold a root MovieScene inside
- Object binding managers have been removed; bindings are persisted in UActorAnimation, UNiagaraAnimation, UWidgetAnimation
- MovieSceneAssetEditor is now ActorAnimationEditor and became a plug-in
- MovieSceneRuntimePlayer is now ActorAnimationPlayer; K2Node_PlayMovieScene has been removed

#CodeReview: matt.kuhlenschmidt, frank.fella, nick.darnell, olaf.piesche, max.chen, andrew.rodham

[CL 2628945 by Max Preussner in Main branch]
2015-07-22 10:59:40 -04:00
Maciej Mroz
63eca0da96 UEBP-40 C++ code generation (WIP):
Structs and Enums
Many improvements in BlueprintCompilerCppBackend

[CL 2628742 by Maciej Mroz in Main branch]
2015-07-22 06:25:54 -04:00
Maciej Mroz
0fc8798e87 UE-18925 Cannot Rename or Delete Event Dispatchers if they are named "color"
[CL 2628671 by Maciej Mroz in Main branch]
2015-07-22 05:17:52 -04:00
Dan Oconnor
b9d4fdd6ac [UE-18758] Downgraded back to a warning. This cannot be an error until false positive type errors are fixed (see UE-14123)
[CL 2626496 by Dan Oconnor in Main branch]
2015-07-20 15:48:41 -04:00
Maciej Mroz
76e1e81834 #jira UE-18799 Compiling a Blueprint that uses a Select node with two different variations of Actor will crash the Editor in 4.9
[CL 2625602 by Maciej Mroz in Main branch]
2015-07-20 04:31:26 -04:00