Lukas Tönne cda6f1721a Fix #126607: GPv3 SVG import has wrong object transform and missing gradient color
The imported GP object should start out in default X/Z plane
orientation. The `EulerXYZ` function expects radians.

Gradient colors are not supported by Grease Pencil. GPv2 was simple
ignoring them and using the `NSVGgradient` pointer as a "color" value,
leading to effectively random colors. GPv3 was outputting black instead,
but that is easy to mistake for a deliberate color. This patch computes
an average gradient color as an approximation, and also generates a
warning for the operator when gradients are encountered.

Using magenta as a visual indicator is also a possibility, but this
proxy color seems to work pretty well.

Pull Request: https://projects.blender.org/blender/blender/pulls/126650
2024-08-23 11:35:09 +02:00
2024-08-23 10:19:53 +10:00
2023-12-08 13:28:13 +11:00

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.

Blender screenshot

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
No description provided
Readme 841 MiB
Languages
C++ 78%
Python 14.9%
C 2.9%
GLSL 1.9%
CMake 1.2%
Other 0.9%