Skip to content

Conversation

adrien-de-tocqueville
Copy link
Contributor

@adrien-de-tocqueville adrien-de-tocqueville commented Apr 23, 2021

Purpose of this PR

Fixing undo/redo on some properties of the light inspector.

The bug is very strange as it doesn't happen with every light, see the gif below. I didn't manage to understand the reason why :(
Therefore I am not 100% sure of the fix but testing seem to prove it works ok

4293

UPDATE About the behavior on master: (noticed after the PR has been merged)

  • If the "Reflector" property is unchecked, undo will work
  • If the box is checked, undo will not work
    Not idea why though

Testing status

For spot box light

  • tested undoing redoing the size

For rectangle area light

  • tested that emissive mesh size gets correctly updated after undo/redo
  • tested undo/redo of enable emissive mesh

Copy link
Contributor

@iM0ve iM0ve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified on my project:

  1. Had lights with not working Undo in my scene
  2. Updated the project to this PR
  3. Undo now is working on previously bugged lights

Additionally checked that light values are still saved, by closing and reopening the project. Checked undo on other light properties (range, affect diffuse etc).

vQsZVXeaSL.mp4

@sebastienlagarde sebastienlagarde merged commit 8e8302b into master Apr 23, 2021
@sebastienlagarde sebastienlagarde deleted the hd/fix-light-editor-undo branch April 23, 2021 13:29
sebastienlagarde added a commit that referenced this pull request May 1, 2021
* [10.x.x HDRP] Fix issue with raytracing resources not properly initialize (#4268)

* draft

* Fix build DXR

* Match behavior with the one in master

* Updated ray tracing settings and added it to the table of contents  (#4279)

* Updated ray tracing settings and added it to the toc

* Removed hyphens from rtss toc entry

* Fix shader warning when using Lanczos upsampling (#4280)

* Added DOTS_INSTANCING_ON variants to the "HDRP/Decal" shader #4284

* [HDRP] Fp16_PPAlpha Panini projection, Motion Blur test and moved other Fp16Alpha scenes to one #4290

* [HDRP] Fix undo of some properties on light editor #4293

* Opt-out of builtin auto baking of ambient/reflection probe. #4324

* Revert "Opt-out of builtin auto baking of ambient/reflection probe. #4324"

This reverts commit 719e835.

* Hd/redo fix inputregistering domainreload (#4358)

* Update InputRegistering.cs

* Remove asset modification if InputSystem package is in use

* Prevent missuse of InputRegistering while InputSystem package is in use

* cleaning

* more cleaning

* Update code to use Next instead of GetArrayElementAtIndex

* Fix strange out of range error

Co-authored-by: Lewis Jordan <lewis.jordan@hotmail.co.uk>
Co-authored-by: Pavlos Mavridis <pavlos.mavridis@unity3d.com>
Co-authored-by: Andrew Saraev <67020478+AndrewSaraevUnity@users.noreply.github.com>
Co-authored-by: TomasKiniulis <50582134+TomasKiniulis@users.noreply.github.com>
Co-authored-by: Adrien de Tocqueville <adrien.tocqueville@unity3d.com>
Co-authored-by: JulienIgnace-Unity <julien@unity3d.com>
Co-authored-by: Remi Slysz <40034005+RSlysz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants