Skip to content

Conversation

arttu-peltonen
Copy link
Contributor

@arttu-peltonen arttu-peltonen commented Sep 30, 2021

Purpose of this PR

Fixes https://fogbugz.unity3d.com/f/cases/1365879/.

AdditionalData components are associated with components that themselves only allow one instance of the component per gameobject (Camera, Light and Reflection Probe) . Therefore the AdditionalData components need to follow the same rule - the attribute was missing from HDAdditionalReflectionData and HDAdditionalLightData, so this PR adds them.


Testing status

Checked that after the fix, you can no longer add multiple instances of these additionaldata components via "paste component as new".

Also I checked that the attribute were already present for HDAdditionalCameraData component, as well as UniversalAdditionalCameraData and UniversalAdditionalLightData. Therefore this should be low risk.

@github-actions
Copy link

Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed.
Link to Yamato: https://yamato.cds.internal.unity3d.com/jobs/902-Graphics
Search for your PR branch using the sidebar on the left, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

HDRP
/.yamato%252Fall-hdrp.yml%2523PR_HDRP_trunk
With changes to HDRP packages, you should also run
/.yamato%252Fall-lightmapper.yml%2523PR_LightMapper_trunk

Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure.

@arttu-peltonen arttu-peltonen marked this pull request as ready for review September 30, 2021 12:08
@arttu-peltonen arttu-peltonen changed the title Add missing DisallowMultipleComponent annotation in AdditionalData components Add missing DisallowMultipleComponent attribute in AdditionalData components Sep 30, 2021
@arttu-peltonen arttu-peltonen force-pushed the bugfix/disallow-multiple-additionaldata-components branch from 2ada214 to 4c6620f Compare September 30, 2021 12:11
Copy link
Contributor

@RSlysz RSlysz left a comment

Choose a reason for hiding this comment

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

Did you check also the Camera?
LGTM :)

@arttu-peltonen arttu-peltonen force-pushed the bugfix/disallow-multiple-additionaldata-components branch from 4c6620f to 237a5f1 Compare October 1, 2021 06:40
@arttu-peltonen arttu-peltonen merged commit 86d1c8d into master Oct 1, 2021
@arttu-peltonen arttu-peltonen deleted the bugfix/disallow-multiple-additionaldata-components branch October 1, 2021 06:48
sebastienlagarde added a commit that referenced this pull request Oct 3, 2021
* Add missing DisallowMultipleComponent attribute in AdditionalData components #5859

* [HDRP][Path Tracing] Slight robustness improvement for sample rescaling #5800

* recaptured reflection probes, updated normals on 2nd room's floor (#5873)

* Hair Documentation Pass (#5868)

* Hair Documentation Pass

* Add the images

* Apply various feedback to the documentation

* Fix small typo

* Update the OSX reference image (forgot to add it previous PR, causing failure) and rerun Yamato

* Update the tooltips

* [HDRP] Remove Fake GTAO bounce on the occlusion when used for direct lighting #5836

* Update 5014_VolumetricCloudsBanding.png

* Update 2307_Shadow_VeryHigh.png

Co-authored-by: Arttu Peltonen <77337829+arttu-peltonen@users.noreply.github.com>
Co-authored-by: Emmanuel Turquin <emmanuel@turquin.org>
Co-authored-by: pierre-unity <39901544+pierre-unity@users.noreply.github.com>
Co-authored-by: John Parsaie <johnpa@unity3d.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.

4 participants