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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-26 20:41:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-26 20:58:56 +0300
commit532c8ac58384309e77791e32ab78f448ad2a76a6 (patch)
treecef77b98714aaed13ec8317bc9bb763d00aa1a02 /release/scripts/startup/bl_operators/presets.py
parentecb56eac57e66c1c925860e05438c9f245bff505 (diff)
Cleanup: pep8 function indentation
Diffstat (limited to 'release/scripts/startup/bl_operators/presets.py')
-rw-r--r--release/scripts/startup/bl_operators/presets.py64
1 files changed, 32 insertions, 32 deletions
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py
index c696c38dac6..8852bca971d 100644
--- a/release/scripts/startup/bl_operators/presets.py
+++ b/release/scripts/startup/bl_operators/presets.py
@@ -35,21 +35,21 @@ class AddPresetBase:
bl_options = {'REGISTER', 'INTERNAL'}
name = StringProperty(
- name="Name",
- description="Name of the preset, used to make the path name",
- maxlen=64,
- options={'SKIP_SAVE'},
- )
+ name="Name",
+ description="Name of the preset, used to make the path name",
+ maxlen=64,
+ options={'SKIP_SAVE'},
+ )
remove_active = BoolProperty(
- default=False,
- options={'HIDDEN', 'SKIP_SAVE'},
- )
+ default=False,
+ options={'HIDDEN', 'SKIP_SAVE'},
+ )
# needed for mix-ins
order = [
"name",
"remove_active",
- ]
+ ]
@staticmethod
def as_filename(name): # could reuse for other presets
@@ -207,14 +207,14 @@ class ExecutePreset(Operator):
bl_label = "Execute a Python Preset"
filepath = StringProperty(
- subtype='FILE_PATH',
- options={'SKIP_SAVE'},
- )
+ subtype='FILE_PATH',
+ options={'SKIP_SAVE'},
+ )
menu_idname = StringProperty(
- name="Menu ID Name",
- description="ID name of the menu this was called from",
- options={'SKIP_SAVE'},
- )
+ name="Menu ID Name",
+ description="ID name of the menu this was called from",
+ options={'SKIP_SAVE'},
+ )
def execute(self, context):
from os.path import basename, splitext
@@ -280,10 +280,10 @@ class AddPresetCamera(AddPresetBase, Operator):
preset_subdir = "camera"
use_focal_length = BoolProperty(
- name="Include Focal Length",
- description="Include focal length into the preset",
- options={'SKIP_SAVE'},
- )
+ name="Include Focal Length",
+ description="Include focal length into the preset",
+ options={'SKIP_SAVE'},
+ )
@property
def preset_values(self):
@@ -376,12 +376,12 @@ class AddPresetFluid(AddPresetBase, Operator):
preset_defines = [
"fluid = bpy.context.fluid"
- ]
+ ]
preset_values = [
"fluid.settings.viscosity_base",
"fluid.settings.viscosity_exponent",
- ]
+ ]
preset_subdir = "fluid"
@@ -413,7 +413,7 @@ class AddPresetHairDynamics(AddPresetBase, Operator):
"settings.density_strength",
"settings.voxel_cell_size",
"settings.pin_stiffness",
- ]
+ ]
class AddPresetSunSky(AddPresetBase, Operator):
@@ -484,11 +484,11 @@ class AddPresetTrackingCamera(AddPresetBase, Operator):
preset_subdir = "tracking_camera"
use_focal_length = BoolProperty(
- name="Include Focal Length",
- description="Include focal length into the preset",
- options={'SKIP_SAVE'},
- default=True
- )
+ name="Include Focal Length",
+ description="Include focal length into the preset",
+ options={'SKIP_SAVE'},
+ default=True
+ )
@property
def preset_values(self):
@@ -609,10 +609,10 @@ class AddPresetOperator(AddPresetBase, Operator):
preset_menu = "WM_MT_operator_presets"
operator = StringProperty(
- name="Operator",
- maxlen=64,
- options={'HIDDEN', 'SKIP_SAVE'},
- )
+ name="Operator",
+ maxlen=64,
+ options={'HIDDEN', 'SKIP_SAVE'},
+ )
preset_defines = [
"op = bpy.context.active_operator",