Fix #129088: Grease Pencil: Python opacity attributes has wrong defaults

Both the fill and point opacity attributes should default to 1.

Pull Request: https://projects.blender.org/blender/blender/pulls/159381
This commit is contained in:
Casey Bianco-Davis 2026-06-01 11:48:31 +02:00 • committed by Falk David
parent 9e049a5aa3
commit 23bec66fa5

View file

@ -174,7 +174,7 @@ class GreasePencilStrokePointHandle:
@DefAttributeGetterSetters([
# Property Name, Attribute Name, Type, Default Value, Docstring.
("radius", "radius", 'FLOAT', 0.01, "The radius of the point."),
("opacity", "opacity", 'FLOAT', 0.0, "The opacity of the point."),
("opacity", "opacity", 'FLOAT', 1.0, "The opacity of the point."),
("vertex_color", "vertex_color", 'FLOAT_COLOR', (0.0, 0.0, 0.0, 0.0),
"The color for this point. The alpha value is used as a mix factor with the base color of the stroke."),
("rotation", "rotation", 'FLOAT', 0.0,
@ -293,7 +293,7 @@ class GreasePencilStrokePointSlice(SliceHelper):
("end_cap", "end_cap", 'INT8', 0, "The type of end cap of this stroke."),
("aspect_ratio", "aspect_ratio", 'FLOAT', 1.0,
"The aspect ratio (x/y) used for textures. "),
("fill_opacity", "fill_opacity", 'FLOAT', 0.0, "The opacity of the fill."),
("fill_opacity", "fill_opacity", 'FLOAT', 1.0, "The opacity of the fill."),
("fill_color", "fill_color", 'FLOAT_COLOR',
(0.0, 0.0, 0.0, 0.0), "The color of the fill."),
("time_start", "init_time", 'FLOAT', 0.0,