Commit Graph

130 Commits

Author SHA1 Message Date
marc audy
b608402db7 [Backout] - CL24461256 to resolve nonunity errors
[FYI] mikko.mononen
Original CL Desc
-----------------------------------------------------------------
State Tree: Copy and paste State Tree states.
- Refactored State Tree style to follow more recent style pattern
- Added code to ensure that State Tree states outers are always the parent state (fixes issues with FCustomizableTextObjectFactory)
- Added support for Cut/Copy/Paste of state tree states (across State Trees)
- Improved reporting of bad bindings and state links (compiler & UI)

#rb Mieszko.Zielinski
#preflight 63ff52bef43e53f68119073e

[CL 24469431 by marc audy in ue5-main branch]
2023-03-01 15:40:35 -05:00
mikko mononen
6cf89871fe State Tree: Copy and paste State Tree states.
- Refactored State Tree style to follow more recent style pattern
- Added code to ensure that State Tree states outers are always the parent state (fixes issues with FCustomizableTextObjectFactory)
- Added support for Cut/Copy/Paste of state tree states (across State Trees)
- Improved reporting of bad bindings and state links (compiler & UI)

#rb Mieszko.Zielinski
#preflight 63ff52bef43e53f68119073e

[CL 24462230 by mikko mononen in ue5-main branch]
2023-03-01 10:10:00 -05:00
mikko mononen
69fc0b5edc StateTree: Sort property bindings based on layout.
- the bindings sent to the compiler are in order they were created
- sort the bindings so that e.g. copying and array and a speciific array item will first copy the earliest property (array) and then the rest (specific item)

#rb Mieszko.Zielinski
#preflight 63ef2b42500c05a624aff988

[CL 24278616 by mikko mononen in ue5-main branch]
2023-02-17 04:00:32 -05:00
mikko mononen
d6c7b83142 StateTree: Fixed not saving STs when executing cmdlet
#preflight 63edee717d2ec3d2fd978f4a

[CL 24254174 by mikko mononen in ue5-main branch]
2023-02-16 05:17:53 -05:00
stephen holmes
97766341ea Refactored FSructView and FConstStructView as per recent meetings. Both are now const correct in the same way TArrayView and TArrayConstView are (ie const FStructView and const FConstStructView) the view can not point at another view.
Also removed the Mutable named functions and replaced with the constness being part of the template.

#preflight 63ea4fbaec50523134d85665

[CL 24197313 by stephen holmes in ue5-main branch]
2023-02-13 20:06:02 -05:00
mikko mononen
1be4bf3ce1 StateTree: improve error reporting when pasting state tree nodes
#preflight 63ea0833923476b686bad92b

[CL 24172330 by mikko mononen in ue5-main branch]
2023-02-13 06:19:05 -05:00
mikko mononen
96f5a4dfb1 StateTree: remove unnecessary null test to keep static analysis happy.
#preflight 63e9f194a24b861df949ec2a

[CL 24171774 by mikko mononen in ue5-main branch]
2023-02-13 04:37:40 -05:00
mikko mononen
580740bc50 StateTree: Allow class cache to discover derived native types.
- Fixes bug where BP classes that derive from natively derived UStateTreeXXXBlueprintBase classes would not show up in the node picker

#preflight 63e9ee7ae92f139c511ce241

[CL 24171710 by mikko mononen in ue5-main branch]
2023-02-13 04:19:59 -05:00
mikko mononen
34a1e22051 StateTree: Allow to bind to deep property paths (including arrays and instanced struct/object)
- refactored the property binding representation, editor binding shave now more structure, and removed intermediate representation
- added functionality to resolve property paths agains a known value
- added instanced struct and object indirection types
- added editor functionality to allow to bind to further than first level of properties
- refactored editor tree traversal, allow to access values too
- simplified statetree node ui
- requires to recompile trees, bumped version

#rb Mieszko.Zielinski
#preflight 63e6204ff15c83b79312aca5

[CL 24117094 by mikko mononen in ue5-main branch]
2023-02-10 07:22:48 -05:00
mikko mononen
47bf0fed53 StateTree: Fix StateTreeReference details non-unity build.
#rb trivial
#preflight 63e4ccd504684547087743e4

[CL 24095036 by mikko mononen in ue5-main branch]
2023-02-09 07:03:58 -05:00
mikko mononen
79bea28960 StateTree: Fix state tree reference when placed inside an instanced struct
- when inside an instanced struct, we have to use the property callbacks to update the data, because the underlying value is cached

#preflight 63e4b47d244dc45a20347b5d

[CL 24094513 by mikko mononen in ue5-main branch]
2023-02-09 05:27:59 -05:00
mikko mononen
a2f64267ed StateTree: fixed bug of a subtrees being compiled in twice
- added check to omit subtrees when traversing the base state level (the code was not expecting subtrees at that level)
- added error logging when same binding source is added multiple times

#preflight 63e4ab1a244dc45a2033e3b9

[CL 24094073 by mikko mononen in ue5-main branch]
2023-02-09 04:23:32 -05:00
yoan stamant
004d36425a Converted AI related Asset actions to AssetDefinitions (StateTree, BehaviorTree, Blackboard, EnvironmentQuery)
#rb mikko.mononen
#rb mieszko.zielinski
#preflight 63dd14211b44ee7cb16f4e46

[CL 24004167 by yoan stamant in ue5-main branch]
2023-02-03 20:52:46 -05:00
henrik karlsson
9a1d5b1ad4 [Engine/Plugins]
* Ran IWYU on ~170 plugins to remove includes not needed. Public api still keep old includes inside #if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2

#preflight 63d09351574ab9cae4670216
#rb none

[CL 23844750 by henrik karlsson in ue5-main branch]
2023-01-25 02:42:36 -05:00
mikko mononen
9bed6ef8ae StateTree: Editor fixed
- fix bug where expanded states were reset when new state was added
- fix resetting transition when new transition condition was added

#preflight 63cf9407976daa618c6b72bb

[CL 23829316 by mikko mononen in ue5-main branch]
2023-01-24 08:45:29 -05:00
mikko mononen
e2fd3455a9 StateTree: Allow tasks to request transitions
- Added ability for tasks to request transitions
- Added buffered transition requests
- Added callback method to FStateTreeTaskBase which is called during transition triggering
- Allow FStateTreeStateLink to be added to tasks and conditions (resolved automatically during compile)

#jira UE-174250
#preflight 63ca7ee8977c62635603afcb

[CL 23815873 by mikko mononen in ue5-main branch]
2023-01-23 12:48:04 -05:00
henrik karlsson
9183978e29 [Engine/Plugins]
* Removed includes (using IWYU) in private files

#preflight 63c79978ac35a0e9dabbe408
#rb none

[CL 23770038 by henrik karlsson in ue5-main branch]
2023-01-19 00:48:07 -05:00
Stephen Holmes
785dc344a4 Initial AI pass on the Vector2f / FDeprecateSlateVector2D slate changes. We still need to do another pass once the rest of slate and the editor engine code has been converted.
#Jira UE-173967
#preflight 63c6d3f82a6acaf162abfa8a
#review-23731406

[CL 23739955 by Stephen Holmes in ue5-main branch]
2023-01-17 12:22:04 -05:00
henrik karlsson
ca622abf70 * Fixed non unity compile errors
* Added UE_INLINE_GENERATED_CPP_BY_NAME to a few files missing it
* Added HEADER_UNIT_SKIP comment to deprecated files

#preflight skipped
#rb none

[CL 23659670 by henrik karlsson in ue5-main branch]
2023-01-12 02:10:19 -05:00
mikko mononen
29f4ff63e1 StateTree: bump external data handly type to 16bits to not limit max nodes to 254.
#rb Mieszko.Zielinski
#preflight 63be8591d862fdd347408bef

[CL 23648546 by mikko mononen in ue5-main branch]
2023-01-11 12:44:01 -05:00
mikko mononen
652d03ca60 StateTree: Fix deno details for non-unity build
#rb trivial
#preflight 63be84adc543a64b7d2543a2

[CL 23648533 by mikko mononen in ue5-main branch]
2023-01-11 12:43:40 -05:00
mikko mononen
d30ad5127b State Tree: new node picker
- added class picker style new node picker with search box and categories

#rb Mieszko.Zielinski
#preflight 63be76206e6e8d4662c637fb

[CL 23643504 by mikko mononen in ue5-main branch]
2023-01-11 05:08:00 -05:00
mikko mononen
ab3816dd30 StateTree: Added global tasks
- Added global tasks which are run at tree level similar to evals (will replace evals)
	- allows initial state selection to rely in calculated data (e.g. world conditions)
	- allows better reuse of existing logic
- Call evaluator stop in reverse order
- Use some uses of mutable instanced structs
- Copy bindings along with ST nodes
- Remove bindings when removing a ST node, so that undo can restore them

#rb Yoan.StAmant
#preflight 63bd2c7968068a8bd6395d2c

[CL 23632408 by mikko mononen in ue5-main branch]
2023-01-10 15:44:28 -05:00
mikko mononen
007fead525 StateTree: Fixed enum property bindings
- consolidate naming of invalid/empty to none in any enum details
- fix UStateTreeEditorData::GetStructByID (was generally returning first context data)
- when binding to an enum property, prune potential source properties based on enum type

#jira UE-173050
#preflight 639c663e012902cb8db9546d

[CL 23537268 by mikko mononen in ue5-main branch]
2022-12-16 08:44:52 -05:00
mikko mononen
12fe8606a6 StructUtils: Fix crash in propertybag details
- SPinTypeSelector can outlive the detail rows of proeprty bag customization
- Make sure we can detect that case and fail gracefully

#preflight 639af57e2540a78d27d9b69d

[CL 23531353 by mikko mononen in ue5-main branch]
2022-12-15 15:55:38 -05:00