Commit Graph

91 Commits

Author SHA1 Message Date
vlad golovan
18eaee09f1 Improvements to PropertyGenerationAllowListPaths feature to hide and remove validation on properties nodes not shown. Improves editor tick time.
[REVIEW] [at]marshall.beachy, [at]jay.Nakai, [at]sebastian.nordgren
#rb sebastian.nordgren

#ROBOMERGE-AUTHOR: vlad.golovan
#ROBOMERGE-SOURCE: CL 20182570 via CL 20182589 via CL 20182597
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20184274 by vlad golovan in ue5-main branch]
2022-05-13 13:44:48 -04:00
sebastian nordgren
0933fac735 Added default value of true to IsParentEnabled in FDetailPropertyRow::GetEnabledState().
This is a pretty rare case that only occurs if you bypass OnItemNodeInitialized() by creating and adding a property row outside of a CustomizeDetails() call in a property customization. However, the use case is pretty innocuous and this seems more correct anyway, so there's not really any harm to changing the behaviour.

Reported in UDN case 00426747.

#review-19806378 @lauren.barnes
#preflight 6261522f080c66006373c9e5

[CL 19848082 by sebastian nordgren in ue5-main branch]
2022-04-21 09:11:05 -04:00
jamie dale
3f7a466324 Allow a detail customization to override "ShouldAutoExpand" on the header row
#jira
#preflight 623ce6b15c488c89d6d888fd
#rb Sebastian.Nordgren
#rnx

#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 19504038 via CL 19505115 via CL 19505728 via CL 19505787
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v937-19513599)

[CL 19514635 by jamie dale in ue5-main branch]
2022-03-25 12:35:48 -04:00
sebastian nordgren
b2dd11e5ae Fixed issues while searching details panels (most notably Project Settings) introduced by change 19171653.
Fixed crash when accessing and invalid PropertyEditor in FDetailPropertyRow.

Fixed performance issue caused by calling GetWidgetRow() on FDetailPropertyRow for every row, which caused the row's widgets to be constructed again when filtering.

Added GetCustomResetToDefault() to IDetailLayoutRow, which allows us to bypass the performance penalty of creating the WidgetRow by directly accessing the FResetToDefaultOverride of the row.

#jira UE-144131
#rb paul.chipchase
#preflight 621de59f037be0078cecb0e4
#preflight 621df0563e14f0c7e5276836

[CL 19196340 by sebastian nordgren in ue5-main branch]
2022-03-01 05:20:41 -05:00
jeanfrancois dube
9aabdf23c3 World Partition UE5 default experience:
- Added option 'DisableStreaming' in the World Partition convert commandlet to allow disabling streaming for converted maps.
- Added flag 'bEnableStreaming' for partitioned worlds that can be used to disable streaming but keep key features such as OFPA and Data Layers.
- In this mode, the streaming generation acts as standard level streaming and can be enabled at any time by the user.
- This mode is enabled by default for new partitioned maps created from the empty template or the open world template.
- The World Partition convert commandlet will now duplicate the default HLOD layers setup.
- Show a hint in the World Partition window that streaming is disabled.
- When disabling streaming from the UI, show a dialog to warn the user about the implications of the change.
- When enabling streaming for the first time, show a dialog to warn the user that the world is about to be set up for streaming.
- When saving a map, don't duplicate its HLOD setup unless it's a template map.
- Includes changes from MattK: `Allow external object details customizations to hide the root object node`.
- TODO: Convert all template maps from the Games project to use World Partiton with streaming disabled using the new 'DisableStreaming' commandlet option.

#rb patrick.enfedaque, richard.malo
#jira UE-143719
#preflight

#ROBOMERGE-AUTHOR: jeanfrancois.dube
#ROBOMERGE-SOURCE: CL 19149766 in //UE5/Release-5.0/... via CL 19150115
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19160979 by jeanfrancois dube in ue5-main branch]
2022-02-25 19:31:01 -05:00
daren cheng
26b6f4f613 Fix config hierarchy crashes due to being enabled on array entries
#jira UE-118423
#rb Vincent.Gauthier
#preflight 620ffe48ff52bfecfc012659
#lockdown JeanMichel.Dignard

#ROBOMERGE-AUTHOR: daren.cheng
#ROBOMERGE-SOURCE: CL 19081092 in //UE5/Release-5.0/... via CL 19095743
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19140390 by daren cheng in ue5-main branch]
2022-02-24 23:12:03 -05:00
vlad golovan
485406734e Engine change to allow only building the property nodes that user is going to see.
When property view widgets get reused, we are running (generate nodes) repeatedly while scrolling. Through some trial and error, I've identified that since I am only showing a fraction of the nodes I don't need to have all the nodes built; I can get away with generating the ones I will see, which improves performance from around 130 ms to 10-20ms per widget. I am adding a way to specify the properties you want to build and ignore the rest, which ultimately dramatically speeds up the PropertyView widget for the case where you are only showing a few properties from the object.


[REVIEW] [at]jay.Nakai, [at]sebastian.nordgren, [at]david.hamm

#rb sebastian.nordgren


#ROBOMERGE-OWNER: vlad.golovan
#ROBOMERGE-AUTHOR: vlad.golovan
#ROBOMERGE-SOURCE: CL 19036849 via CL 19036854 via CL 19038143 via CL 19038155 via CL 19039279
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v918-19018356)

[CL 19039995 by vlad golovan in ue5-main branch]
2022-02-17 14:54:44 -05:00
sebastian nordgren
b9803aee28 Speculative fix for crash when an invalid FPropertyNode is passed into FDetailPropertyRow, causing it to store a null IPropertyHandle pointer that is never checked for validity.
This fix always initializes it to a valid pointer, but invalid handle, which is a state that is handled correctly in FPropertyHandleBase.

#jira UE-130580
[REVIEW] [at]lauren.barnes
#preflight 61e56664a2616066f67fbfa6

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 18639655 in //UE5/Release-5.0/... via CL 18639702 via CL 18639711
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v900-18638592)

[CL 18639724 by sebastian nordgren in ue5-main branch]
2022-01-18 09:53:00 -05:00
thomas sarkanen
d884e2b6fc Fix ExtensionContent not working for FDetailWidgetRow created via IDetailPropertyRow::CustomWidget()
#jira none
#rb Sebastian.Nordgren
[FYI] Sebastian.Nordgren
#preflight 61e57650006b17a68656d278

#ROBOMERGE-AUTHOR: thomas.sarkanen
#ROBOMERGE-SOURCE: CL 18632672 in //UE5/Release-5.0/... via CL 18633038 via CL 18633049
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)

[CL 18637357 by thomas sarkanen in ue5-main branch]
2022-01-18 04:29:05 -05:00
jeremie roy
92747ca450 Fix crash caused by dereferencing nullptr when displaying a detail property row with an external root node using a property row generator
#jira UE-134126
#rb simon.therriault sebastian.nordgren

#ROBOMERGE-AUTHOR: jeremie.roy
#ROBOMERGE-SOURCE: CL 18223217 in //UE5/Release-5.0/... via CL 18223245
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 18223259 by jeremie roy in ue5-release-engine-test branch]
2021-11-17 09:51:59 -05:00
aurel cordonnier
fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00
aurel cordonnier
a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00
sebastian nordgren
1b97999265 NameContent() in details rows now correctly respects user-defined HAlign, allowing for labels to contain an HBox with both left and right aligned slots.
#rb paul.chipchase
#preflight 614af4fa6a142b0001b2fecf

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 17594051 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v871-17566257)

[CL 17594062 by sebastian nordgren in ue5-release-engine-test branch]
2021-09-22 07:02:49 -04:00
steven dao
2d527f66bd Drag-and-drop to reorder variables in FUserDefinedStructureEditor
- Allow drag-and-drop behavior to be customized for a details widget row
- Cleanup PropertyEditorHelpers::MakePropertyReorderHandle (it was setting the enabled attribute which always ended up getting overwritten)
- Add drag-and-drop handler+op for UserDefinedStructureEditor to enable drag-and-drop reordering. Removed buttons for moving up/down.

#jira UETOOL-2776
#rb sebastian.nordgren
#preflight 6130deb01a52e20001a6c93b

#ROBOMERGE-SOURCE: CL 17404287 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)

[CL 17404301 by steven dao in ue5-release-engine-test branch]
2021-09-02 12:06:51 -04:00
sebastian nordgren
427c03f8cb The IsEnabled() attribute of FDetailPropertyRows and FDetailWidgetRows is now correctly used.
#jira UE-118847
#rb lauren.barnes
#preflight 6130a707f09c6e00015db076

#ROBOMERGE-SOURCE: CL 17403168 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)

[CL 17403204 by sebastian nordgren in ue5-release-engine-test branch]
2021-09-02 10:42:32 -04:00
sebastian nordgren
71aa25c115 Removed check of IsEditConst for DetailPropertyRows, since this was causing elements in VisibleAnywhere containers to not be editable.
#fyi marc.audy, kriss.gossart

[CL 16472196 by sebastian nordgren in ue5-main branch]
2021-05-26 13:51:53 -04:00
Patrick Boutot
aeea5f0679 Slate: Convert SConcertScrollBox, SWrapBox, SBoxPanel, SWindow FSlot's to the FSlotArgument syntax.
#jira UE-114425
#preflight 60adb0b704188d000133d0b9

[CL 16466544 by Patrick Boutot in ue5-main branch]
2021-05-26 06:42:00 -04:00
sebastian nordgren
4568c16c4e Fixed warnings related to &= in DetailPropertyRow.cpp on old VS compiler versions.
#jira UE-116397

#ROBOMERGE-SOURCE: CL 16446098 in //UE5/Main/... via CL 16446102
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Release-Engine-Staging) (v814-16434418)

[CL 16446106 by sebastian nordgren in ue5-release-engine-staging branch]
2021-05-25 07:16:15 -04:00
sebastian nordgren
8d9ccdd48d Fixed warnings related to &= in DetailPropertyRow.cpp on old VS compiler versions.
#jira UE-116397

[CL 16446098 by sebastian nordgren in ue5-main branch]
2021-05-25 07:14:01 -04:00
sebastian nordgren
e4fc76dfd1 Property rows with custom widgets now default to the standard IsEnabled check if a custom one is not set.
#jira UE-115779
#rb lauren.barnes, danny.chapman

[CL 16434493 by sebastian nordgren in ue5-main branch]
2021-05-24 07:26:49 -04:00
aurel cordonnier
8eebe8841f Merge UE5/RET @ 16305968 to UE5/Main
This represents UE4/Main @ 16261013 and Dev-PerfTest @ 16259937

[CL 16306996 by aurel cordonnier in ue5-main branch]
2021-05-12 18:10:03 -04:00
sebastian nordgren
ca7a047932 Edit conditions for properties that don't support edit condition toggles no longer checkSlow when retrieving the check state, but rather only when setting it.
CustomEditConditionValueChanged handlers are now postfixed with a call to FPropertyNode::InvalidateCachedState(), which causes the IsEditConst state to refresh.

Removed unnecessary code to access the PropertyEditor->IsEditConditionMet(), which is stored in EditConditionValue now.

#review @lauren.barnes, @patric.boutot
#jira FROST-1702

[CL 16008018 by sebastian nordgren in ue5-main branch]
2021-04-14 13:15:46 -04:00
sebastian nordgren
13d3eced9f When creating a CustomWidget from an FDetailPropertyRow ie. Category.AddProperty(MyProperty).CustomWidget(), we now forward the property handle to the widget row as well.
#rb lauren.barnes

[CL 15872336 by sebastian nordgren in ue5-main branch]
2021-03-31 04:11:44 -04:00
sebastian nordgren
a496f31be5 Moved unnecessary padding from FDetailPropertyRow that was causing 4 pixels of padding to always appear on the right and throw off alignment in the details panel.
#rb trivial

#ROBOMERGE-SOURCE: CL 15406764 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15406767 by sebastian nordgren in ue5-main branch]
2021-02-15 10:57:06 -04:00
lauren barnes
70f0a2dc9b Changing a check to an ensure so we can find the indeterminate behavior but not crash.
#rb Brooke.Hubert
[FYI] Sebastian.Nordgren

#ROBOMERGE-SOURCE: CL 15392972 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15393063 by lauren barnes in ue5-main branch]
2021-02-11 18:15:30 -04:00