Fix T66300: GPencil layer context menu not working in topbar layer popover
This commit is contained in:
@@ -81,7 +81,8 @@ class GPENCIL_MT_layer_context_menu(Menu):
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
gpd = context.gpencil
|
||||
ob = context.object
|
||||
gpd = ob.data
|
||||
|
||||
layout.operator("gpencil.layer_duplicate", icon='ADD') # XXX: needs a dedicated icon
|
||||
|
||||
|
Reference in New Issue
Block a user