e4ab6dd8dee671b7fb40583f89108d35a21be021
Only the evaluated positions were changed when deform or subsurf modifiers were active. This was caused by only writing to the evaluated positions owned by the PBVH and assuming these were aliased with the mesh positions. There were also quite a few TODOs in the area related to an extra positions array that was passed around that was conceptually unnecessary. Brush deformations should be based on the evaluated positions, but only the original positions should be written to. This PR resolves those TODOs while resolving sculpting with deform modifiers and shape keys. We do this by only writing to the original mesh positions. For shape keys we use the existing translations from the brush rather than recomputing them, and only copy the mesh original positions to the active shape key. This also makes it easier to remove the PBVH's copy of vertex positions in the future. Pull Request: https://projects.blender.org/blender/blender/pulls/122842
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
