Skip to content

Cycles : Generate tangent patch fix to avoid a crash.#300

Merged
murraystevenson merged 1 commit into
GafferHQ:mainfrom
boberfly:cyclesGenerateTangentFix
May 4, 2026
Merged

Cycles : Generate tangent patch fix to avoid a crash.#300
murraystevenson merged 1 commit into
GafferHQ:mainfrom
boberfly:cyclesGenerateTangentFix

Conversation

@boberfly
Copy link
Copy Markdown
Contributor

@boberfly boberfly commented May 3, 2026

This is a patch I will upstream to Blender's main repository. They avoid this crash as the generated attribute aka "Pref" is always generated Blender-side and handed off instead of Cycles creating its own.

The issue was that the generated attribute was made after tessellation and only filled this attribute to the size of the original un-diced mesh. The patch ensures the attribute is created before tessellation and will interpolate after.

The crash was discovered by @murraystevenson here: GafferHQ/gaffer#6885

@boberfly
Copy link
Copy Markdown
Contributor Author

boberfly commented May 4, 2026

https://projects.blender.org/blender/blender/pulls/158107 keeping a record of the PR I've put up for Blender to merge into future versions.

Copy link
Copy Markdown
Contributor

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

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

Thanks @boberfly, this does avoid the crash on my end and it looks like your Blender PR has been approved, so we'll be able to drop this patch on the next Cycles update.

@murraystevenson murraystevenson merged commit f5c6a48 into GafferHQ:main May 4, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants