GPv3: Show Line Art options in Object > Add menu

The Object > Add > Grease Pencil menu will now show Scene/Collection/Object Line Art
options.

Pull Request: https://projects.blender.org/blender/blender/pulls/118833
This commit is contained in:
YimingWu
2024-02-28 16:20:48 +01:00
committed by Falk David
parent 64427b5344
commit d296c66ab1
5 changed files with 116 additions and 25 deletions

View File

@@ -2589,6 +2589,13 @@ class VIEW3D_MT_grease_pencil_add(Menu):
layout.operator("object.grease_pencil_add", text="Empty", icon='EMPTY_AXIS').type = 'EMPTY'
layout.operator("object.grease_pencil_add", text="Stroke", icon='STROKE').type = 'STROKE'
layout.operator("object.grease_pencil_add", text="Suzanne", icon='MONKEY').type = 'MONKEY'
layout.separator()
layout.operator("object.grease_pencil_add", text="Scene Line Art", icon='SCENE').type = 'LINEART_SCENE'
layout.operator(
"object.grease_pencil_add",
text="Collection Line Art",
icon='GROUP').type = 'LINEART_COLLECTION'
layout.operator("object.grease_pencil_add", text="Object Line Art", icon='CUBE').type = 'LINEART_OBJECT'
class VIEW3D_MT_add(Menu):