Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-09 05:42:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-09 05:42:53 +0400
commit2384910b60c161971ba37d7a14874580def12ea0 (patch)
tree33b8174bd04426c6a5b2bed7c2eed12aeb74924c /space_view3d_spacebar_menu.py
parent6367ee9946c8bc0ee9e91fc97d8303ce38991fc4 (diff)
update for changes in blender.
Diffstat (limited to 'space_view3d_spacebar_menu.py')
-rw-r--r--space_view3d_spacebar_menu.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py
index 72bdd890..a130f9a4 100644
--- a/space_view3d_spacebar_menu.py
+++ b/space_view3d_spacebar_menu.py
@@ -1238,8 +1238,8 @@ class VIEW3D_OT_pivot_cursor(bpy.types.Operator):
bl_idname = "view3d.pivot_cursor"
bl_label = "Cursor as Pivot Point"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return bpy.context.space_data.pivot_point != 'CURSOR'
def execute(self, context):
@@ -1251,8 +1251,8 @@ class VIEW3D_OT_revert_pivot(bpy.types.Operator):
bl_idname = "view3d.revert_pivot"
bl_label = "Reverts Pivot Point to median"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return bpy.context.space_data.pivot_point != 'MEDIAN_POINT'
def execute(self, context):
@@ -1403,8 +1403,8 @@ class VIEW3D_OT_CursorToEdgeIntersection(bpy.types.Operator):
bl_idname = "view3d.snap_cursor_to_edge_intersection"
bl_label = "Cursor to Edge Intersection"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
obj = context.active_object
return obj != None and obj.type == 'MESH'