Skip to content

Conversation

@JussiKnuuttila
Copy link
Contributor

Backport of #1586

Commit ee59f50 in PR #7 commented out the code that adds backslashes to the generated HYBRID_V1_CUSTOM_ADDITIONAL_MATERIAL_VARS macro when Hybrid Renderer V1 is used.

The backslashes are necessary for Hybrid V1 to work correctly when multiple DOTS instanced properties are used. The macro is intended to expand into multiple UNITY_DEFINE_INSTANCED_PROP definitions, which are split across multiple lines and concatenated together using the preprocessor backslash operator. Without the backslash, any UNITY_DEFINE_INSTANCED_PROP definitions after the first are expanded immediately instead, which causes a compile error.

This PR restores the backslashes and adds a comment to explain why it's necessary.

…VARS generation, to fix Hybrid V1 not working with multiple properties.
@JussiKnuuttila JussiKnuuttila requested a review from a team as a code owner August 13, 2020 10:51
@JussiKnuuttila JussiKnuuttila requested a review from stramit August 13, 2020 10:51
@github-actions
Copy link

It appears that you made a non-draft PR!
Please convert your PR to draft (button on the right side of the page)
and cancel any jobs that started on Yamato.
See the PR template for more information.
Thank you!

@JussiKnuuttila JussiKnuuttila marked this pull request as draft August 13, 2020 11:08
@stramit stramit marked this pull request as ready for review August 13, 2020 13:19
@stramit stramit merged commit 7b34fdb into 9.x.x/release Aug 13, 2020
@stramit stramit deleted the hybrid/backport-hybrid-v1-fix-multiple-properties branch August 13, 2020 13:19
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