From ebfb6490e11ae9ae0429737c1bf0e0cd64222f5a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 5 Aug 2010 15:58:52 +0000 Subject: update for changes in blender. --- add_curve_torus_knots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'add_curve_torus_knots.py') diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py index 3d66e8ba..eed9c67c 100644 --- a/add_curve_torus_knots.py +++ b/add_curve_torus_knots.py @@ -274,7 +274,8 @@ class torus_knot_plus(bpy.types.Operator): box.prop(props, 'geo_res') ##### POLL ##### - def poll(self, context): + @staticmethod + def poll(context): return context.scene != None ##### EXECUTE ##### -- cgit v1.2.3