Search Issue Tracker

Active

Votes

0

Found in

2021.3.44f1

2022.3.48f1

6000.0.21f1

Issue ID

UUM-82978

Regression

No

Adding and editing trees in Terrain doesn't add to Undo History

--

-

*Steps to reproduce:*
# Open a Unity project
# Download and Import this asset to your project: [Free Trees | 3D Trees | Unity Asset Store|https://assetstore.unity.com/packages/3d/vegetation/trees/free-trees-103208
# Open the Undo History via Ctrl + U or Edit > Undo History
# Add a Terrain to your scene via GameObject > 3D Object > Terrain
# Select the new Terrain GameObject
# In the Inspector, under the Terrain component, navigate to the 'Paint Trees' tab
# Click on Edit Trees > Add Tree
# Select one of the imported tree assets next to the Tree Prefab option
# Click Add
# Observe the Undo History
# With the tree selected, click Edit Trees > Edit Tree
# Next to Tree Prefab, select a different tree asset
# Click Apply
# Observe the Undo History
# With the tree selected, click Edit Trees > Remove Tree
# Observe the Undo History

*Actual results:* Removing a tree adds to the Undo History as expected, however Adding and Editing a tree do not

*Expected results:* Adding, Editing, and Removing a tree all add to the Undo History

*Reproducible with versions:* 6000.0.21f1, 2022.3.48f1, 2021.3.44f1

*Not reproducible with versions:* - 

*Can’t test with versions:* 7000.0.0a3 (terrain system no longer available)

*Tested on (OS):* Ubuntu 24.04, Windows 11

*Notes:* 
* Depending on the order that you Add/Remove/Undo trees, this issue can have some extra weird behaviour. For example, if you
   1. add a tree to the Trees list
   2. remove that tree 
   3. add that same tree again 
   4. undo the removal of that tree 
   5. redo the removal of that tree 
then the tree will be gone, even though the previous step had the tree still there. This is because of adding trees not being added to the Undo History.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.