AddItemEvent is not signaled when a stackable item merges into an existing stack

Summary

AddItemEvent is not signaled when a stackable item merges into an existing stack.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

  1. Use empty inventory preset
  2. Create custom_inventory_component and add it to Player’s root inventory
  3. Subscribe to AddItemEvent in your custom_inventory_component
  4. Call AddItem on your custom_inventory_component using any stackable item (e.g. item_ammo_light_bullets{})
  5. Call AddItem again using the same arguments

Expected Result

AddItemEvent should be signaled twice.
First signal with add_item_result that contains one element in AddedItems array.
Second signal with add_item_result that contains one element in ModifiedItems array.

Observed Result

Only the first signal with one element in AddedItems array is received.
The second event is not signaled but stackable item has properly merged into existing stack.

Platform(s)

PC

Additional Notes

I’m actually not sure whether this is a bug or if ModifiedItems only describes items that weren’t fully merged into existing stacks and still exist outside the target inventory.

I’d appreciate any tips on adding stackable items to inventories with limited item slots. My current approach is to react to AddItemEvent and remove any items over the limit.