-
- Downloads
Fix T96294: Crash and error with shape key normal calculation
A mistake in the mesh normal refactor caused the wrong mesh to be used when calculating normals with a shape key's deformation. This commit fixes the normal calculation by using the correct mesh, with just adjusted vertex positions, and calculating the results directly into the result arrays when possible. This completely avoids the need to make a local copy of the mesh, which makes sense, since the only thing that changes is the vertex positions. Differential Revision: https://developer.blender.org/D14317
Showing
- source/blender/blenkernel/BKE_key.h 3 additions, 1 deletionsource/blender/blenkernel/BKE_key.h
- source/blender/blenkernel/BKE_mesh.h 15 additions, 0 deletionssource/blender/blenkernel/BKE_mesh.h
- source/blender/blenkernel/intern/key.c 60 additions, 53 deletionssource/blender/blenkernel/intern/key.c
- source/blender/blenkernel/intern/mesh_convert.cc 1 addition, 1 deletionsource/blender/blenkernel/intern/mesh_convert.cc
- source/blender/blenkernel/intern/mesh_normals.cc 16 additions, 16 deletionssource/blender/blenkernel/intern/mesh_normals.cc
- source/blender/blenkernel/intern/object.cc 4 additions, 2 deletionssource/blender/blenkernel/intern/object.cc
- source/blender/io/collada/GeometryExporter.cpp 1 addition, 1 deletionsource/blender/io/collada/GeometryExporter.cpp
Loading
Please register or sign in to comment