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:
Diffstat (limited to 'space_view3d_spacebar_menu.py')
-rw-r--r--space_view3d_spacebar_menu.py9
1 files changed, 6 insertions, 3 deletions
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'