92d85a85ad268ca38b625b3af94e062680af269d
In some cases, using the Scrape Multiplane brush in Dynamic mode, the brush stroke will have no vertices to sample from to find the associated planes used to calculate deformations. This results in attempting to divide by 0. To make this potential error case more obvious, this commit changes the helper method `sample_surface` to instead return a `std::optional` of `ScrapeSampleData` in the rare occurance that we have no samples, so that calling code is required to handle this case explicitly. Pull Request: https://projects.blender.org/blender/blender/pulls/132573
…
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%
