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. --- space_view3d_spacebar_menu.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'space_view3d_spacebar_menu.py') diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py index 921c90b0..72bdd890 100644 --- a/space_view3d_spacebar_menu.py +++ b/space_view3d_spacebar_menu.py @@ -1238,7 +1238,8 @@ class VIEW3D_OT_pivot_cursor(bpy.types.Operator): bl_idname = "view3d.pivot_cursor" bl_label = "Cursor as Pivot Point" - def poll(self, context): + @staticmethod + def poll(context): return bpy.context.space_data.pivot_point != 'CURSOR' def execute(self, context): @@ -1250,7 +1251,8 @@ class VIEW3D_OT_revert_pivot(bpy.types.Operator): bl_idname = "view3d.revert_pivot" bl_label = "Reverts Pivot Point to median" - def poll(self, context): + @staticmethod + def poll(context): return bpy.context.space_data.pivot_point != 'MEDIAN_POINT' def execute(self, context): @@ -1401,7 +1403,8 @@ class VIEW3D_OT_CursorToEdgeIntersection(bpy.types.Operator): bl_idname = "view3d.snap_cursor_to_edge_intersection" bl_label = "Cursor to Edge Intersection" - def poll(self, context): + @staticmethod + def poll(context): obj = context.active_object return obj != None and obj.type == 'MESH' -- cgit v1.2.3