Commit Graph

470 Commits

Author SHA1 Message Date
thomas sarkanen
d27ce9ae95 Removing Initialize and Evaluate functions
For now, removing these as their semantics are due to change
Also converting Update and Become Relevant functions to use more-devived-typed update context (less casting required)

#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16771205 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16771237 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-24 08:31:18 -04:00
thomas sarkanen
fea7b70391 Fixed crash drag/dropping a sequence player into a template anim BP
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16771196 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16771228 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-24 08:31:04 -04:00
thomas sarkanen
1eeb3f489b Fix crash when compiling-on-load a graph that contains NULL nodes
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16771191 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16771221 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-24 08:30:55 -04:00
thomas sarkanen
1569535443 Fixed metadata preventing new bindings being created
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16755786 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16755789 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-23 08:25:24 -04:00
thomas sarkanen
cc29d26b6f Display whether anim node properties are dynamic in the binding menu
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16755373 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16755379 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-23 06:38:03 -04:00
thomas sarkanen
6153d306e8 Fixed warning when linked anim graph node pins are connected
#jira UE-118583
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16743757 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16743763 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-22 11:31:18 -04:00
jurre debaare
fab69e6d08 Ported project specific scriptability UFunctions to Engine:
- SetPreviewSkeletalMesh to UAnimationAsset and UAnimBlueprint
- Functionality to retrieve UAnimationGraphs and UAnimationGraphNodes of a specific class from UAnimBlueprint and UAnimationGraph respectively
- Functionality for pose driver/asset scripting

#jira UE-117797
#rb Thomas.Sarkanen
#preflight 60d075e32ab218000115936a
#preflight 60d1a3eaa819040001397a52

#ROBOMERGE-SOURCE: CL 16741838 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16741845 by jurre debaare in ue5-release-engine-test branch]
2021-06-22 08:26:20 -04:00
thomas sarkanen
78d17cb897 Fix error reporting for dynamic values that are not exposed on pins
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16739973 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16739975 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-22 04:46:11 -04:00
thomas sarkanen
da77f53ebc Improvements to anim node function calls
Split 'node context' into an 'evaluation context' and a 'node reference' type and updated regular function signatures when creating node functions. This way we can seperate concerns (and potentially reference anim nodes standalone in the future).
Moved function caller code into function ref file to stop AnimNodeBase bloat.
Fixed functions not being called on root nodes.

#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16727107 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16727111 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-21 07:54:47 -04:00
thomas sarkanen
665afc556c Fixed being unable to open newly-spawned empty blend sapce graphs
#jira UE-118296 - Unable to open newly spawned Blend Space Graph nodes
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16705828 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16705837 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-17 12:08:56 -04:00
thomas sarkanen
cecebd0cf8 Anim blueprint encapsulation improvements
Adds 'template' anim BP concept. These anim BPs have no TargetSkeleton and as such cannot have direct references to animations placed inside of their anim graphs
Adds function call support from anim nodes. All anim graph nodes can now call functions when initialized, updated, evaluated or when they first become relevant.
Relevancy is established using a new FAnimSubsystemInstance_NodeRelevancy which tracks nodes in a local map, per UAnimInstance, if nodes require it.
Functions are displayed on the node if bound, and in the details panel.
Added a new override point to FAnimSubsystemInstance to allow for WT init.
Moved FMemberReference customization into a public header so it can be used on anim node functions.
Wrapped functions up into FAnimNodeFunctionRef structure so they can be re-used more effectively. Converted CallFunction node to use them.
Added a couple of simple BP function libraries to demonstrate the use of the new FAnimNodeContext (this is intended to be a generic way of exposing FAnimNode_Base types to script without the node types themselves having to be known to script directly).
Added the ability to set exposed properties as 'always dynamic' so they appear in mutable data rather than being merged into constants. This allows for the anim node data API to be changed to be less strict (and more script friendly). Now values can be set in mutable data (via GET_MUTABLE_ANIM_NODE_DATA_PTR) and attempted sets to constant data can be ignored and reported to client code.
A few minor crash fixes with edge cases (inc when trying to open an asset editor fails because of a missing skeleton/cancellation).
Also fixes an issue where literal linked anim graph/control rig/custom poroperty node inputs didnt get copied

#rb Jurre.deBaare,Aaron.Cox

#ROBOMERGE-SOURCE: CL 16703644 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16703653 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-17 08:59:23 -04:00
patrick boutot
8c1e03e9f8 Slate: Convert SButton attributes to SlateAttributes
#rb vincent.gauthier

#ROBOMERGE-SOURCE: CL 16673611 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16673625 by patrick boutot in ue5-release-engine-test branch]
2021-06-15 10:53:29 -04:00
thomas sarkanen
a8fc96c94a Fix asset player names and 'empty' players not appearing in context menus correctly
Also fix asset references persisting when applying a property access binding

#jira UE-116509 - Unable to create empty Blend Space Graphs in the Anim Graph
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16657336 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v833-16641396)

[CL 16657350 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-14 08:23:08 -04:00
timothy daoust
13583ddc3c Added the ability to drag layers to create a linked anim layer node
#jira UE-81805

#rb thomas.sarkanen

#ROBOMERGE-SOURCE: CL 16594838 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v828-16531559)

[CL 16594859 by timothy daoust in ue5-release-engine-test branch]
2021-06-08 17:58:38 -04:00
timothy daoust
0d26966f09 Fix Non Unity compile errors caused by changes to AnimStateNodeBase
#rb aaron.cox

[CL 16553194 by timothy daoust in ue5-main branch]
2021-06-03 17:05:43 -04:00
timothy daoust
d6ca80a2e5 Fixed a bug where state naming was not validating against sub-graphs
#jira UE-114207

#rb jurre.debaare

[CL 16536792 by timothy daoust in ue5-main branch]
2021-06-02 13:46:46 -04:00
Thomas Sarkanen
6adfe86822 Fix crashes, inconsistencies and performance issues with layered blend per bone node
Introduces a serial number to FBoneContainer that allows easier refreshing of bone-relative data. Eventually the overall CacheBones path could be superseded with lazy-update systems based on this serial number.

#jira UE-116464 - Layered blend per bone crash
#rb Jurre.deBaare

[CL 16466917 by Thomas Sarkanen in ue5-main branch]
2021-05-26 07:55:41 -04:00
Thomas Sarkanen
ebc803bd83 Unify titles of asset players to use a common format
Use correct title for asset players when asset is bound to property access

#jira UE-116472 - Asset players bound via property access incorrectly report that they use asset 'None'
#rb Jurre.deBaare

[CL 16466900 by Thomas Sarkanen in ue5-main branch]
2021-05-26 07:53:28 -04:00
Thomas Sarkanen
56b3ba9d79 Move anim node pin binding to pin context menu
Binding workflow is now common with control rig
Bindings still show up on pins when bound, but the binding combobox is not displayed until bound

#rb Jurre.deBaare

[CL 16465796 by Thomas Sarkanen in ue5-main branch]
2021-05-26 05:12:26 -04:00
Thomas Sarkanen
ef85f31796 Fix 'expose as pin' menu item not appearing
Menu extender wasnt being correctly combined with a last minute change to fix a CIS issue.

#rb Jurre.deBaare

[CL 16445600 by Thomas Sarkanen in ue5-main branch]
2021-05-25 05:16:56 -04:00
Thomas Sarkanen
50c6861a06 Fix for structure accesses from property access nodes not linking their expanded nodes correctly
#rn Jurre.deBaare

[CL 16445489 by Thomas Sarkanen in ue5-main branch]
2021-05-25 04:35:25 -04:00
Thomas Sarkanen
50961d34d4 Fixed property access binding copies being skipped if a node uses BP
Fast path copies were unaffected as they defaulted to their generated BP logic, despite the fast path not being generated.

#jira UE-116370 - Property Access failing to bind under specific conditions
#rb Jurre.deBaare,Koray.Hagen

[CL 16445486 by Thomas Sarkanen in ue5-main branch]
2021-05-25 04:34:31 -04:00
Thomas Sarkanen
0f8ecdb48d Fix static analysis warning
#rb Jurre.deBaare

[CL 16435879 by Thomas Sarkanen in ue5-main branch]
2021-05-24 11:20:41 -04:00
Thomas Sarkanen
589c8f6ad0 Linked anim graphs/layers now appear in the "my blueprint" outline and context menu
Titles & icons tweaked to emphasise the linked content, not the type of the node.
Also fixes bounding box init issue when spawning new input pose nodes in linked anim graphs
Added the ability to override the tag checked when vierufying skeleton compatibility by FAssetData. This allows anim BPs to use the functionality as they have a "TargetSkeleton" tag vs. other assets with a "Skeleton" tag.

#rb Jurre.deBaare

[CL 16434383 by Thomas Sarkanen in ue5-main branch]
2021-05-24 06:55:32 -04:00
Thomas Sarkanen
d411e1b010 Fixed unloaded assets in asset players not showing up in anim BP context menus
Unified the approach to gathering assets and spawning nodes from them. Previously each had its own slightly unique code doing similar things.
Note that with this change it is now possible to directly spawn 'evaluator' style nodes from the context menu instead of relying on a context menu conversion step.
Also tweaked icons, tooltips and titles for consistency

#rb Jurre.deBaare

[CL 16434364 by Thomas Sarkanen in ue5-main branch]
2021-05-24 06:45:16 -04:00