Page MenuHomeFeedback Tracker

Layout editor saving bug, Layout editor tab can only save 1 time (CTRL+S)
New, NormalPublic

Description

Layout editor tab can only be saved once, after which it bugs out and changes won't be saved properly

This happened to me when I was using the world editor and trying to edit a layout (override) at the same time.
When I edit something in the layout editor and save it,
then it prompts for saving before reload.


After clicking "SAVE SELECTED", the editor refreshes.
IF I now continue editing the layout, the changes do not save(when pressing CTRL+S).
It's as if the layout editor tab that I have open is lingering and broken.

How I noticed the bug:
When I make changes, the layout in the resource browser gets and asterisk,
BUT the layout tab doesn't get an asterisk.

Whenever the bug happens:
If I save, the changes I made are not saved, there is no way to keep my changes now.

.
layout tab: (since I just made new changes, there normally would be an asterisk)


Resource browser:

Workaround:
The way to continue editing this layout and having the changes SAVE:
I must close the layout tab, then reopen the layout from the resource browser:

I know this is a workaround to this bug, because now if I change anything in the layout,
I get the asterisk next to the layout name in the layout tab (as expected)

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Create an override for layout {F437ACE2BD5F11E1}UI/layouts/Menus/Inventory/InventoryItemSlot.layout
  2. Open world editor
  3. Load in to MPTEST
  4. Open the layout editor {F437ACE2BD5F11E1}UI/layouts/Menus/Inventory/InventoryItemSlot.layout by double clicking it in the workbench resource browser
  5. Change widget named ammoCount Is Visible parameter to ENABLED.
  6. CTRL+S Save changes

6.2 Observe changes in world editor by closing and opening the character inventory. (changes work as expected (all items have an ammo count progress bar now))

  1. Change widget named ammoCount Is Visible parameter to DISABLED.
  2. CTRL+S Attempt to save changes

8.2 Observe changes in world editor by closing and opening the character inventory (all items still have an ammo count progress bar)

  1. Close the layout editor tab in workshop
  2. Open the layout editor {F437ACE2BD5F11E1}UI/layouts/Menus/Inventory/InventoryItemSlot.layout by double clicking it in the workbench resource browser
  3. Change widget named ammoCount Is Visible parameter to DISABLED.
  4. CTRL+S Save changes

12.2 Observe changes in world editor by closing and opening the character inventory. (changes work as expected (the ammo count progress bars are removed from all items now))

Additional Information


Also the amount of times the layout is displayed in the save changes before reload prompt is increased by 1 every time I go through closing and re-opening the layout editor tab

Event Timeline