Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-03 19:35:50 +0300
committerHans Goudey <h.goudey@me.com>2022-02-10 19:10:45 +0300
commitc0674aa1450555b99435b9d09f8d94ae856f23d5 (patch)
tree828a89f2a69d7d344fba84ed471c1126b3d45464 /source/blender/depsgraph/intern
parent94f023023035492da824fb1f4df1067e1e1237f1 (diff)
Fix T95334: Crash with no vertex normals in multires bake
This is partially caused by a stupid mistake in cfa53e0fbeed7178c78 where I missed initializing the `vert_normals` pointer in `MResolvePixelData`. It's also caused by questionable assumptions from DerivedMesh code that vertex normals would be valid. The fix used here is to create a temporary mesh with the data necessary to compute vertex normals, and ensure them here. This is used because normal calculation is only implemented for `Mesh` and edit mesh, not `DerivedMesh`. While this might not be great for performance, it's potentially aligned with future refactoring of this code to remove `DerivedMesh` completely. Since this is one of the last places the data structure is used, that would be a great improvement. Differential Revision: https://developer.blender.org/D13960
Diffstat (limited to 'source/blender/depsgraph/intern')
0 files changed, 0 insertions, 0 deletions