[Bf-blender-cvs] [c62e60f01f2] master: Annotations: Add layer Opacity paramater

Antonio Vazquez noreply at git.blender.org
Tue Feb 23 16:15:10 CET 2021


Commit: c62e60f01f2afb445380f7a38975848cc0496873
Author: Antonio Vazquez
Date:   Tue Feb 23 16:14:56 2021 +0100
Branches: master
https://developer.blender.org/rBc62e60f01f2afb445380f7a38975848cc0496873

Annotations: Add layer Opacity paramater

This option was removed in the refactor of grease pencil and never was set again.

===================================================================

M	release/scripts/startup/bl_ui/properties_grease_pencil_common.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 67905192fe8..8e47b3103cd 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -478,6 +478,7 @@ class AnnotationDataPanel:
 
         tool_settings = context.tool_settings
         if gpd and gpl:
+            layout.prop(gpl, "opacity", text="Opacity", slider=True)
             layout.prop(gpl, "thickness")
         else:
             layout.prop(tool_settings, "annotation_thickness", text="Thickness")



More information about the Bf-blender-cvs mailing list