Fix #147394: Grease Pencil: Opacity operator missing for the menu
The Grease Pencil operator for changing the Opacity of selected strokes was missing from the transform menu, which is the where the `Radius` operator lives. This prevented the operator from being searched. 4.5 backport candidate. Pull Request: https://projects.blender.org/blender/blender/pulls/147672
This commit is contained in:
committed by
casey-bianco-davis
parent
d58afb615c
commit
1fa2be8a9b
@@ -1291,6 +1291,8 @@ class VIEW3D_MT_transform(VIEW3D_MT_transform_base, Menu):
|
||||
layout.operator("transform.skin_resize")
|
||||
elif context.mode in {'EDIT_CURVE', 'EDIT_GREASE_PENCIL', 'EDIT_CURVES', 'EDIT_POINTCLOUD'}:
|
||||
layout.operator("transform.transform", text="Radius").mode = 'CURVE_SHRINKFATTEN'
|
||||
if context.mode in 'EDIT_GREASE_PENCIL':
|
||||
layout.operator("transform.transform", text="Opacity").mode = 'GPENCIL_OPACITY'
|
||||
|
||||
if context.mode != 'EDIT_CURVES' and context.mode != 'EDIT_GREASE_PENCIL':
|
||||
layout.separator()
|
||||
|
||||
Reference in New Issue
Block a user