935 Commits

Author SHA1 Message Date
ben hoffman
30f6c76254 Blueprints: Fix dropdown for UPARAM's GetOptions was not hidden when a pin was connected
#rb dave.jones2, jodon.karlik

#ushell-cherrypick of 31385532 by kristof.morva1

#ushell-cherrypick of 31619147 by ben.hoffman

[CL 32492616 by ben hoffman in 5.4 branch]
2024-03-25 19:42:06 -04:00
sameer mirza
0834049701 Material nodes connection tooltip gets stuck
#rb massimo.tristano
#jira UE-207136

[CL 31560525 by sameer mirza in 5.4 branch]
2024-02-16 06:59:28 -05:00
phillip kavan
91e6a80f36 Fix a regression that could prevent widgets from being destroyed after closing an editor window containing a graph panel.
This could lead to an inability to delete certain assets through the content browser, as panel widgets would continue to reference the underlying graph object through the slate application context with no way to clean them up. In turn, this would result in the asset persisting and being (incorrectly) noted as now existing in a "corrupt" state.

After this change, the asset deletion dialog will no longer report the asset as being referenced in this manner.

This change also minimizes the number of active timers registered to the panel widget for incoming node add/remove graph change events (which matches what was already being done for node select events).

#jira UE-201589, UE-194980
#rb ben.hoffman

[CL 30895230 by phillip kavan in 5.4 branch]
2024-01-25 14:26:36 -05:00
zhikang shao
7404e83db3 Reverting blueprint editor shortcut Alt+Shift+F to search locally by mapping it to the singular Find References action. The singular Find References action, while not exposed to UI for nodes that have Find References By Name/Class Member support, can still be triggered with shortcut and will trigger a local By Name or By Class Member search based on what the previous behavior was for that node type. For function nodes it will search by function name, while for variable nodes it will do an exact search since Find References already did that for a while.
However: function searches will do a quoted search by native function name. The previous behavior was unquoted search by node title (usually function display name). As a result, the previous behavior for Find References would fail in functions with special characters in their name. Now that the name is surrounded in quotes, all function names are supported. The new Find References behavior now searches for correct function name for parent call nodes, interface implementations, event overrides, where the previous behavior failed due to searching for node title.
#rb Phillip.Kavan

[CL 30856744 by zhikang shao in 5.4 branch]
2024-01-24 14:33:15 -05:00
steve robb
6d5b974842 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30735396 by steve robb in ue5-main branch]
2024-01-19 19:41:56 -05:00
dave jones2
73d6c12907 Deprecated bIsBeadFunction.
This was a really old feature that never took off. It's not needed anymore.

#rb dan.oconnor

[CL 30718919 by dave jones2 in ue5-main branch]
2024-01-19 12:19:18 -05:00
zulqarnain abbasi
15d196a910 Fix for Texture Graph Undo Redo Issues
Also added the tests for undo redo

#jira UE-203475
#jira UE-203476
#jira UE-201944
#jira UE-202697


#rb Zohaib.Javed

[CL 30637460 by zulqarnain abbasi in ue5-main branch]
2024-01-16 12:59:55 -05:00
evgenii babinets
690bc2cbc4 Fixed unreachable code warnings/errors.
#rb simon.orr

[CL 30620936 by evgenii babinets in ue5-main branch]
2024-01-15 12:29:05 -05:00
mateo egey
42d515886c Added slate argument to automatically select an action in the graph action menu when only one action exists.
Defaults to off to save perf. Useful for some Niagara cases

#jira UE-144291
#rb aditya.ravichandran

[CL 30617677 by mateo egey in ue5-main branch]
2024-01-15 08:46:24 -05:00
geordiemhall
c2dd3c9d30 PR: Fix graph nodes flashing for a frame when using undo/redo
#10486
#rb zahra.nikbakht
#jira UE-187947

[CL 30514745 by geordiemhall in ue5-main branch]
2024-01-09 15:39:38 -05:00
zahra nikbakht
114a0d681f GraphEditor: ensure the correct LOD is applied to graph node and pins before the first tick.
We rely on the LOD setting of the graph panel to determine the LOD of nodes and pins, but they only get a reference to the panel after their construction, so we need to refresh the LOD once we get a reference to the owning panel from the node. This is only needed before the first tick.
This is a prerequisite to fix the issue of graph nodes disappearing for a frame on undo/redo
#jira UE-187947
#rb Patrick.Boutot

[CL 30514055 by zahra nikbakht in ue5-main branch]
2024-01-09 15:02:34 -05:00
zhikang shao
5a4f3dadcf #jira UE-196209
Improves "Find References" in blueprints: now supports function search by [class, function] call-sites and definitions rather than a generic search for function name. Replaces the "Find References" context menu action with a sub-menu for variables and functions in BlueprintEditor, WidgetBlueprintEditor, SubobjectEditor and SubobjectEditor. That context sub-menu has 'By Name' and 'By Class Member' search options and local+global versions of both.

Made changes to Find-in-Blueprints metadata that is generated per blueprint asset to be able to do "specific function of a specific class" type queries; some search types were unsupported with previous metadata. Incremented the EFiBVersion so that the Find-in-Blueprints search window will ask to re-index all blueprints and resave. Added an opt-out editor setting "Allow Index All Blueprints" (default: true) to disable the button, which can be decided per project. Added an action in the Find-in-Blueprints modal when outdated metadata is detected to export the list of affected assets.
#rb Phillip.Kavan

[CL 30316851 by zhikang shao in ue5-main branch]
2023-12-14 06:34:39 -05:00
zhikang shao
15c016080d [Backout] - CL30289707
[FYI] zhikang.shao
Original CL Desc
-----------------------------------------------------------------
#jira UE-196209
Improves "Find References" in blueprints: now supports function search by [class, function] call-sites and definitions rather than a generic search for function name. Replaces the "Find References" context menu action with a sub-menu for variables and functions in BlueprintEditor, WidgetBlueprintEditor, SubobjectEditor and SubobjectEditor. That context sub-menu has 'By Name' and 'By Class Member' search options and local+global versions of both.

Made changes to Find-in-Blueprints metadata that is generated per blueprint asset to be able to do "specific function of a specific class" type queries; some search types were unsupported with previous metadata. Incremented the EFiBVersion so that the Find-in-Blueprints search window will ask to re-index all blueprints and resave. Added an opt-out editor setting "Allow Index All Blueprints" (default: true) to disable the button, which can be decided per project. Added an action in the Find-in-Blueprints modal when outdated metadata is detected to export the list of affected assets.
#rb Phillip.Kavan

[CL 30289794 by zhikang shao in ue5-main branch]
2023-12-13 07:33:50 -05:00
zhikang shao
68c300ecfa #jira UE-196209
Improves "Find References" in blueprints: now supports function search by [class, function] call-sites and definitions rather than a generic search for function name. Replaces the "Find References" context menu action with a sub-menu for variables and functions in BlueprintEditor, WidgetBlueprintEditor, SubobjectEditor and SubobjectEditor. That context sub-menu has 'By Name' and 'By Class Member' search options and local+global versions of both.

Made changes to Find-in-Blueprints metadata that is generated per blueprint asset to be able to do "specific function of a specific class" type queries; some search types were unsupported with previous metadata. Incremented the EFiBVersion so that the Find-in-Blueprints search window will ask to re-index all blueprints and resave. Added an opt-out editor setting "Allow Index All Blueprints" (default: true) to disable the button, which can be decided per project. Added an action in the Find-in-Blueprints modal when outdated metadata is detected to export the list of affected assets.
#rb Phillip.Kavan

[CL 30289718 by zhikang shao in ue5-main branch]
2023-12-13 07:25:05 -05:00
ben humphreys
e9c9ac7a74 Added binding to create a new Custom Event Node. No binding by default. Similar to pressing C to create a new Comment Node.
#jira UE-200930
#rb Phillip.Kavan

[CL 30218170 by ben humphreys in ue5-main branch]
2023-12-08 15:12:30 -05:00
christopher waters
86af3ce99d Fixing various header only compile errors.
[CL 30138626 by christopher waters in ue5-main branch]
2023-12-05 17:55:30 -05:00
ben zeigler
64c32b73fb Deprecate GetCurrentTag/InvalidateTag and remove all calls as the feature was unreliable and is no longer used by TSoftObjectPtr as of 5.3
#rb jodon.karlik, robert.millar
#jira UE-187216

[CL 29996164 by ben zeigler in ue5-main branch]
2023-11-29 14:47:34 -05:00
phillip kavan
239da03f7b Minor revision to SGraphPanel to decouple its refresh on updates to the underlying graph object from a dependency on a parent SGraphEditor.
This allows SGraphPanel widgets that live outside of an editor context (e.g. previews) to avoid node/pin references going stale if the underlying graph object is reconstructed.

#jira UE-194980
#rb daren.cheng

[CL 29963162 by phillip kavan in ue5-main branch]
2023-11-28 12:35:28 -05:00
dan oconnor
8f24616fb5 Blueprint editor marching ants (execution path) are now displayed for function library functions
#jira UE-201140
#rb Dan.Oconnor

[CL 29913823 by dan oconnor in ue5-main branch]
2023-11-23 15:53:33 -05:00
daren cheng
a82b866b00 Add support for layered Slate Post RT processing
---
Add PostBufferUpdate widget which can be used to trigger an update to the Slate Post RT when it "draws"
Updated Post RT will contain Scene + All UI drawn at that time & also be processed by provided processor.
Updated ICustomSlateElement interface to support draw context params.

#rb Patrick.Boutot
#jira UE-199609

[CL 29892909 by daren cheng in ue5-main branch]
2023-11-22 13:45:14 -05:00
marc audy
763a611985 Fix C4072 warnings
#rnx

[CL 29852844 by marc audy in ue5-main branch]
2023-11-20 17:26:53 -05:00
olivier lamothe
3099424ff3 Diff tool - When matching pins before and after a change, prefer pins that match by name and id, and relegate name-only matches as a fallback.
This fixes false positives when a pin is connected to several pins with the same name

#jira UE-186242
#rb jordan.hoffmann

[CL 29816081 by olivier lamothe in ue5-main branch]
2023-11-17 14:16:20 -05:00
sameer mirza
03a436dda7 Fix node slider tweaking not updating texture graph
#rb sam.gateau
#jira UE-200093

[CL 29707635 by sameer mirza in ue5-main branch]
2023-11-14 03:12:12 -05:00
ben hoffman
b36f38d22e Fix BT decorator and service lists (and also some custom licensee graph implementations) put the first and second level category on the same level.
A very long time ago CL 2411381 introduced a change to make the default Base Indent Level of all Graph Action Menus "1", basically meaning that both "0" and "1" indent levels would be placed at the root of the menu. Presumably they've needed it, because in BPs, categories on the left side are custom headers, and they didn't want the children (functions, variables, etc) to have an extra indent.
However, they've made this change globally, basically breaking Graph Action Menus that didn't have category customization and needed the first level to be indented under the root level.
Some systems have overcome this by defining a custom expander with a Base Indent Level of 0 - getting back the original, expected behavior. That was however just hiding the underlying issue.
This change reverts back the Base Indent Level to 0, and sets it to 1 instead only for those menus, which have a customized category header. This should fix all graph menus where the second category level was not indented (i.e. BT Action Menu and Decorator Context Menu).

#rb aditya.ravichandran
#jira none

#ushell-cherrypick of 29515770 by kristof.morva1

[CL 29530311 by ben hoffman in ue5-main branch]
2023-11-07 15:20:10 -05:00
sameer mirza
c2d450ff01 use SGraphPinNumSlider instead of STG_GraphPinNum
#rb Zulqarnain.Abbasi
#jira UE-199524

[CL 29360464 by sameer mirza in ue5-main branch]
2023-11-02 07:18:31 -04:00