07749b389d1f3254f6696ab66b3185b7dcd5d5a8
Previously, Grease Pencil used a radius convention where 1 "px" = 0.001 units. This "px" was the brush size which would be stored in the stroke thickness and then scaled by the point pressure factor. Finally, the render engine would divide this thickness value by 2000 (we're going from a thickness to a radius, hence the factor of two) to convert back into blender units. Store the radius now directly in blender units. This makes it consistent with how hair curves handle the radius. * Removes the scaling in the render engine. * Makes sure the grease pencil primitives use the correct radii * Changes the drawing tool to work with screen space radius * Draws the drawing tool cursor in screen space * Makes sure the scaling is done when converting from legacy grease pencil objects * Makes sure the scaling is done when loading previous files Consequences for the draw tool: * Since the tool has a radius input in pixels, it now works in screen space. This is a pretty big change to how it works by default before, so a new option will have to be added that allows the brush to be in "Scene" space. This is similar to how it works in sculpt mode. But this is a bigger change, so I would like to split that into a separate PR. Pull Request: https://projects.blender.org/blender/blender/pulls/113770
…
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%
