use set's, since pythons 3.2's optimizer converts these to frozensets, lookups are also faster then tuples (though this isn't a bottleneck).
This commit is contained in:
@@ -28,7 +28,7 @@ class CurveButtonsPanel():
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return (context.object and context.object.type in ('CURVE', 'SURFACE', 'FONT') and context.curve)
|
||||
return (context.object and context.object.type in {'CURVE', 'SURFACE', 'FONT'} and context.curve)
|
||||
|
||||
|
||||
class CurveButtonsPanelCurve(CurveButtonsPanel):
|
||||
|
||||
Reference in New Issue
Block a user