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>2016-04-29 07:11:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-29 07:13:37 +0300
commitfb768079f5ab2b6e561606d84f421086f1f922e7 (patch)
tree875effe359fd1ae74fc63f1b066361059071f1c5
parent88a7449d24013e7619f96e1ef23959cac868f3dd (diff)
Revert whitespace edits of previous commit
2 lines before class is pep8 convention.
-rw-r--r--ui_pie_menus_official.py24
1 files changed, 23 insertions, 1 deletions
diff --git a/ui_pie_menus_official.py b/ui_pie_menus_official.py
index 0ea60539..24739499 100644
--- a/ui_pie_menus_official.py
+++ b/ui_pie_menus_official.py
@@ -33,6 +33,7 @@ import bpy
from bpy.types import Menu, Operator
from bpy.props import EnumProperty
+
class VIEW3D_PIE_object_mode(Menu):
bl_label = "Mode"
@@ -42,6 +43,7 @@ class VIEW3D_PIE_object_mode(Menu):
pie = layout.menu_pie()
pie.operator_enum("OBJECT_OT_mode_set", "mode")
+
class VIEW3D_PIE_view_more(Menu):
bl_label = "More"
@@ -56,6 +58,7 @@ class VIEW3D_PIE_view_more(Menu):
pie.operator("VIEW3D_OT_localview")
pie.operator("SCREEN_OT_region_quadview")
+
class VIEW3D_PIE_view(Menu):
bl_label = "View"
@@ -66,6 +69,7 @@ class VIEW3D_PIE_view(Menu):
pie.operator_enum("VIEW3D_OT_viewnumpad", "type")
pie.operator("wm.call_menu_pie", text="More", icon='PLUS').name = "VIEW3D_PIE_view_more"
+
class VIEW3D_PIE_shade(Menu):
bl_label = "Shade"
@@ -83,6 +87,7 @@ class VIEW3D_PIE_shade(Menu):
pie.operator("OBJECT_OT_shade_smooth")
pie.operator("OBJECT_OT_shade_flat")
+
class VIEW3D_manipulator_set(Operator):
bl_label = "Set Manipulator"
bl_idname = "view3d.manipulator_set"
@@ -103,6 +108,7 @@ class VIEW3D_manipulator_set(Operator):
return {'FINISHED'}
+
class VIEW3D_PIE_manipulator(Menu):
bl_label = "Manipulator"
@@ -115,6 +121,7 @@ class VIEW3D_PIE_manipulator(Menu):
pie.operator("view3d.manipulator_set", icon='MAN_SCALE', text="Scale").type = 'SCALE'
pie.prop(context.space_data, "show_manipulator")
+
class VIEW3D_PIE_pivot(Menu):
bl_label = "Pivot"
@@ -126,6 +133,7 @@ class VIEW3D_PIE_pivot(Menu):
if context.active_object.mode == 'OBJECT':
pie.prop(context.space_data, "use_pivot_point_align", text="Center Points")
+
class VIEW3D_PIE_snap(Menu):
bl_label = "Snapping"
@@ -137,6 +145,7 @@ class VIEW3D_PIE_snap(Menu):
pie.prop(toolsettings, "snap_element", expand=True)
pie.prop(toolsettings, "use_snap")
+
class CLIP_PIE_refine_pie(Menu):
# Refinement Options
bl_label = "Refine Intrinsics"
@@ -150,6 +159,7 @@ class CLIP_PIE_refine_pie(Menu):
pie.prop(settings, "refine_intrinsics", expand=True)
+
class CLIP_PIE_geometry_reconstruction(Menu):
# Geometry Reconstruction
bl_label = "Reconstruction"
@@ -161,6 +171,7 @@ class CLIP_PIE_geometry_reconstruction(Menu):
pie.operator("clip.bundles_to_mesh", icon='MESH_DATA')
pie.operator("clip.track_to_empty", icon='EMPTY_DATA')
+
class CLIP_PIE_proxy_pie(Menu):
# Proxy Controls
bl_label = "Proxy Size"
@@ -174,6 +185,7 @@ class CLIP_PIE_proxy_pie(Menu):
pie.prop(space.clip, "use_proxy", text="Use Proxy")
pie.prop(space.clip_user, "proxy_render_size", expand=True)
+
class CLIP_PIE_display_pie(Menu):
# Display Options
bl_label = "Marker Display"
@@ -189,6 +201,7 @@ class CLIP_PIE_display_pie(Menu):
pie.prop(space, "show_marker_search", text="Display Search Area", icon='VIEWZOOM')
pie.prop(space, "show_marker_pattern", text="Display Pattern Area", icon='BORDERMOVE')
+
class CLIP_PIE_marker_pie(Menu):
# Settings for the individual markers
bl_label = "Marker Settings"
@@ -224,6 +237,7 @@ class CLIP_PIE_marker_pie(Menu):
prop.data_path = "space_data.clip.tracking.tracks.active.pattern_match"
prop.value = 'PREV_FRAME'
+
class CLIP_PIE_tracking_pie(Menu):
# Tracking Operators
bl_label = "Tracking"
@@ -248,6 +262,7 @@ class CLIP_PIE_tracking_pie(Menu):
pie.operator("clip.refine_markers", icon='LOOP_BACK').backwards = True
pie.operator("clip.refine_markers", icon='LOOP_FORWARDS').backwards = False
+
class CLIP_PIE_clipsetup_pie(Menu):
# Setup the clip display options
bl_label = "Clip and Display Setup"
@@ -268,6 +283,7 @@ class CLIP_PIE_clipsetup_pie(Menu):
pie.operator("clip.set_active_clip", icon='CLIP')
pie.operator("wm.call_menu_pie", text="Proxy", icon='PLUS').name = "CLIP_PIE_proxy_pie"
+
class CLIP_PIE_solver_pie(Menu):
# Operators to solve the scene
bl_label = "Solving"
@@ -293,6 +309,7 @@ class CLIP_PIE_solver_pie(Menu):
prop.frames = 15
prop.error = 2
+
class CLIP_PIE_reconstruction_pie(Menu):
# Scene Reconstruction
bl_label = "Reconstruction"
@@ -313,6 +330,7 @@ class CLIP_PIE_reconstruction_pie(Menu):
pie.operator("clip.set_scale", text="Set Scale", icon='ARROW_LEFTRIGHT')
pie.operator("wm.call_menu_pie", text="Reconstruction", icon='MESH_DATA').name = "CLIP_PIE_geometry_reconstruction"
+
class CLIP_PIE_timecontrol_pie(Menu):
# Time Controls
bl_label = "Time Control"
@@ -333,6 +351,7 @@ class CLIP_PIE_timecontrol_pie(Menu):
pie.operator("screen.frame_offset", text="Previous Frame", icon='TRIA_LEFT').delta = -1
pie.operator("screen.frame_offset", text="Next Frame", icon='TRIA_RIGHT').delta = 1
+
class PieMenuPrefs(bpy.types.AddonPreferences):
bl_idname = __name__
@@ -340,7 +359,7 @@ class PieMenuPrefs(bpy.types.AddonPreferences):
def draw(self, context):
layout = self.layout
- layout.prop(context.scene, "Enable_Tab_01", text="Hotkey List", icon="INFO")
+ layout.prop(context.scene, "Enable_Tab_01", text="Hotkey List", icon="INFO")
if context.scene.Enable_Tab_01:
row = layout.row()
layout.label(text="Object Mode: 'TAB', 'PRESS'")
@@ -361,6 +380,7 @@ addon_keymaps = []
classes = (
VIEW3D_manipulator_set,
+
VIEW3D_PIE_object_mode,
VIEW3D_PIE_view,
VIEW3D_PIE_view_more,
@@ -381,6 +401,7 @@ classes = (
CLIP_PIE_timecontrol_pie,
)
+
def register():
for cls in classes:
bpy.utils.register_class(cls)
@@ -427,6 +448,7 @@ def register():
addon_keymaps.append(km)
+
def unregister():
for cls in classes:
bpy.utils.unregister_class(cls)