visualdesigncafe / nature-renderer

Nature Renderer is a plugin for the Unity game engine to efficiently render vegetation on your terrains.
https://visualdesigncafe.com/nature-renderer/
0 stars 0 forks source link

Undo crashes Unity #9

Closed Ghostdreamer11 closed 7 months ago

Ghostdreamer11 commented 8 months ago

Describe the bug Ctrl+Z after "Convert to Nature Instance" crashes unity

To Reproduce Steps to reproduce the behavior:

  1. Create a prefab of something, drag into scene
  2. Right click > Convert to Nature Instance
  3. Ctrl+Z
  4. Crash

Expected behavior Preferably, undo happens. Alternatively, a debug.error says you cant undo. Anything other than a hard crash

Screenshots If applicable, add screenshots to help explain your problem.

Project(please complete the following information):

System (please complete the following information):

Additional context Add any other context about the problem here.

maxplooi commented 7 months ago

Thank you for reporting this issue. I can confirm that Ctrl+Z causes a crash. It seems there has been a change in how Unity handles Undo operations resulting in this crash in recent versions of Unity. I have found a workaround and have included a fix for the next update.

maxplooi commented 7 months ago

Version 2022.0.3 is now available and contains a fix for this crash. You can go to Help > Nature Renderer > Check for Updates in the Unity editor to download the update.