Cleanup: remove unused variables
This commit is contained in:
@@ -274,7 +274,6 @@ class AddModifierMenu(Operator):
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
# NOTE: This operator only exists to add a poll to the add modifier shortcut in the property editor.
|
||||
object = context.object
|
||||
space = context.space_data
|
||||
return space and space.type == 'PROPERTIES' and space.context == 'MODIFIER'
|
||||
|
||||
|
||||
@@ -91,7 +91,6 @@ class MATERIAL_PT_gpencil_slots(GreasePencilMaterialsPanel, Panel):
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
ob = context.object
|
||||
ma = context.material
|
||||
|
||||
return ma and ma.grease_pencil
|
||||
|
||||
Reference in New Issue
Block a user