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:
authorBastien Montagne <montagne29@wanadoo.fr>2012-07-03 13:02:41 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-07-03 13:02:41 +0400
commit63810ffcef825930b034899f54107fc35b159349 (patch)
tree68001354d92338876451ea5707b455f9fc07270e
parenta0a4c54710603b8edd61b4f33ce388154f41a707 (diff)
Style edit (mostly), use """ for docstrings (not ''').
Should also fix the broken py ops tips...
-rw-r--r--release/scripts/modules/animsys_refactor.py4
-rw-r--r--release/scripts/modules/bpy/ops.py20
-rw-r--r--release/scripts/modules/bpy_extras/mesh_utils.py12
-rw-r--r--release/scripts/modules/bpyml_ui.py4
-rw-r--r--release/scripts/modules/console_python.py4
-rw-r--r--release/scripts/modules/rna_info.py4
-rw-r--r--release/scripts/startup/bl_operators/add_mesh_torus.py2
-rw-r--r--release/scripts/startup/bl_operators/image.py2
-rw-r--r--release/scripts/startup/bl_operators/mesh.py2
-rw-r--r--release/scripts/startup/bl_operators/object.py20
-rw-r--r--release/scripts/startup/bl_operators/object_align.py2
-rw-r--r--release/scripts/startup/bl_operators/object_randomize_transform.py2
-rw-r--r--release/scripts/startup/bl_operators/presets.py34
-rw-r--r--release/scripts/startup/bl_operators/screen_play_rendered_anim.py2
-rw-r--r--release/scripts/startup/bl_operators/sequencer.py6
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_follow_active.py6
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_lightmap.py6
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_smart_project.py13
-rw-r--r--release/scripts/startup/bl_operators/wm.py53
-rw-r--r--release/scripts/startup/bl_ui/properties_data_curve.py4
20 files changed, 102 insertions, 100 deletions
diff --git a/release/scripts/modules/animsys_refactor.py b/release/scripts/modules/animsys_refactor.py
index 06c449afd41..fd6087b38e6 100644
--- a/release/scripts/modules/animsys_refactor.py
+++ b/release/scripts/modules/animsys_refactor.py
@@ -157,8 +157,8 @@ def find_path_new(id_data, data_path, rna_update_dict, rna_update_from_map):
def update_data_paths(rna_update):
- ''' rna_update triple [(class_name, from, to), ...]
- '''
+ """ rna_update triple [(class_name, from, to), ...]
+ """
# make a faster lookup dict
rna_update_dict = {}
diff --git a/release/scripts/modules/bpy/ops.py b/release/scripts/modules/bpy/ops.py
index c4e7e6ac19e..34beb6035ae 100644
--- a/release/scripts/modules/bpy/ops.py
+++ b/release/scripts/modules/bpy/ops.py
@@ -31,16 +31,16 @@ op_get_instance = ops_module.get_instance
class BPyOps(object):
- '''
+ """
Fake module like class.
bpy.ops
- '''
+ """
def __getattr__(self, module):
- '''
+ """
gets a bpy.ops submodule
- '''
+ """
if module.startswith('__'):
raise AttributeError(module)
return BPyOpsSubMod(module)
@@ -69,20 +69,20 @@ class BPyOps(object):
class BPyOpsSubMod(object):
- '''
+ """
Utility class to fake submodules.
eg. bpy.ops.object
- '''
+ """
__keys__ = ("module",)
def __init__(self, module):
self.module = module
def __getattr__(self, func):
- '''
+ """
gets a bpy.ops.submodule function
- '''
+ """
if func.startswith('__'):
raise AttributeError(func)
return BPyOpsSubModOp(self.module, func)
@@ -105,11 +105,11 @@ class BPyOpsSubMod(object):
class BPyOpsSubModOp(object):
- '''
+ """
Utility class to fake submodule operators.
eg. bpy.ops.object.somefunc
- '''
+ """
__keys__ = ("module", "func")
diff --git a/release/scripts/modules/bpy_extras/mesh_utils.py b/release/scripts/modules/bpy_extras/mesh_utils.py
index efd69f91a8b..ad0fe06b68b 100644
--- a/release/scripts/modules/bpy_extras/mesh_utils.py
+++ b/release/scripts/modules/bpy_extras/mesh_utils.py
@@ -319,7 +319,7 @@ def edge_loops_from_edges(mesh, edges=None):
def ngon_tessellate(from_data, indices, fix_loops=True):
- '''
+ """
Takes a polyline of indices (fgon) and returns a list of face
indicie lists. Designed to be used for importers that need indices for an
fgon to create from existing verts.
@@ -329,7 +329,7 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
to fill, and can be a subset of the data given.
fix_loops: If this is enabled polylines that use loops to make multiple
polylines are delt with correctly.
- '''
+ """
from mathutils.geometry import tessellate_polygon
from mathutils import Vector
@@ -352,9 +352,9 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
return v1[1], v2[1]
if not fix_loops:
- '''
+ """
Normal single concave loop filling
- '''
+ """
if type(from_data) in {tuple, list}:
verts = [Vector(from_data[i]) for ii, i in enumerate(indices)]
else:
@@ -368,10 +368,10 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
fill = tessellate_polygon([verts])
else:
- '''
+ """
Seperate this loop into multiple loops be finding edges that are
used twice. This is used by lightwave LWO files a lot
- '''
+ """
if type(from_data) in {tuple, list}:
verts = [vert_treplet(Vector(from_data[i]), ii)
diff --git a/release/scripts/modules/bpyml_ui.py b/release/scripts/modules/bpyml_ui.py
index a7e2e7bc04a..b4ad4e0b54a 100644
--- a/release/scripts/modules/bpyml_ui.py
+++ b/release/scripts/modules/bpyml_ui.py
@@ -85,10 +85,10 @@ def _call_recursive(context, base, py_node):
class BPyML_BaseUI():
- '''
+ """
This is a mix-in class that defines a draw function
which checks for draw_data
- '''
+ """
def draw(self, context):
layout = self.layout
diff --git a/release/scripts/modules/console_python.py b/release/scripts/modules/console_python.py
index b5985d2c851..2aaadb17b71 100644
--- a/release/scripts/modules/console_python.py
+++ b/release/scripts/modules/console_python.py
@@ -48,14 +48,14 @@ def replace_help(namespace):
def get_console(console_id):
- '''
+ """
helper function for console operators
currently each text data block gets its own
console - code.InteractiveConsole()
...which is stored in this function.
console_id can be any hashable type
- '''
+ """
from code import InteractiveConsole
consoles = getattr(get_console, "consoles", None)
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py
index 7eccda74e14..0ef2ac5164d 100644
--- a/release/scripts/modules/rna_info.py
+++ b/release/scripts/modules/rna_info.py
@@ -437,9 +437,9 @@ def BuildRNAInfo():
# rna_functions_dict = {} # store all functions directly in this type (not inherited)
def full_rna_struct_path(rna_struct):
- '''
+ """
Needed when referencing one struct from another
- '''
+ """
nested = rna_struct.nested
if nested:
return "%s.%s" % (full_rna_struct_path(nested), rna_struct.identifier)
diff --git a/release/scripts/startup/bl_operators/add_mesh_torus.py b/release/scripts/startup/bl_operators/add_mesh_torus.py
index 75a6cd73d64..6c48ae72e4b 100644
--- a/release/scripts/startup/bl_operators/add_mesh_torus.py
+++ b/release/scripts/startup/bl_operators/add_mesh_torus.py
@@ -84,7 +84,7 @@ def add_torus(major_rad, minor_rad, major_seg, minor_seg):
class AddTorus(Operator, object_utils.AddObjectHelper):
- '''Add a torus mesh'''
+ """Add a torus mesh"""
bl_idname = "mesh.primitive_torus_add"
bl_label = "Add Torus"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
diff --git a/release/scripts/startup/bl_operators/image.py b/release/scripts/startup/bl_operators/image.py
index f2e5e57fad8..074069255bc 100644
--- a/release/scripts/startup/bl_operators/image.py
+++ b/release/scripts/startup/bl_operators/image.py
@@ -24,7 +24,7 @@ from bpy.props import StringProperty
class EditExternally(Operator):
- '''Edit image in an external application'''
+ """Edit image in an external application"""
bl_idname = "image.external_edit"
bl_label = "Image Edit Externally"
bl_options = {'REGISTER'}
diff --git a/release/scripts/startup/bl_operators/mesh.py b/release/scripts/startup/bl_operators/mesh.py
index 51645bfeeab..3dc25d84aca 100644
--- a/release/scripts/startup/bl_operators/mesh.py
+++ b/release/scripts/startup/bl_operators/mesh.py
@@ -25,7 +25,7 @@ from bpy.props import EnumProperty
class MeshMirrorUV(Operator):
- '''Copy mirror UV coordinates on the X axis based on a mirrored mesh'''
+ """Copy mirror UV coordinates on the X axis based on a mirrored mesh"""
bl_idname = "mesh.faces_mirror_uv"
bl_label = "Copy Mirrored UV coords"
bl_options = {'REGISTER', 'UNDO'}
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index a2c632a0244..5000d718182 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -27,7 +27,7 @@ from bpy.props import (StringProperty,
class SelectPattern(Operator):
- '''Select objects matching a naming pattern'''
+ """Select objects matching a naming pattern"""
bl_idname = "object.select_pattern"
bl_label = "Select Pattern"
bl_options = {'REGISTER', 'UNDO'}
@@ -105,7 +105,7 @@ class SelectPattern(Operator):
class SelectCamera(Operator):
- '''Select the active camera'''
+ """Select the active camera"""
bl_idname = "object.select_camera"
bl_label = "Select Camera"
bl_options = {'REGISTER', 'UNDO'}
@@ -131,7 +131,7 @@ class SelectCamera(Operator):
class SelectHierarchy(Operator):
- """Select object relative to the active object's position """
+ """Select object relative to the active object's position """ \
"""in the hierarchy"""
bl_idname = "object.select_hierarchy"
bl_label = "Select Hierarchy"
@@ -198,7 +198,7 @@ class SelectHierarchy(Operator):
class SubdivisionSet(Operator):
- '''Sets a Subdivision Surface Level (1-5)'''
+ """Sets a Subdivision Surface Level (1-5)"""
bl_idname = "object.subdivision_set"
bl_label = "Subdivision Set"
@@ -278,7 +278,7 @@ class SubdivisionSet(Operator):
class ShapeTransfer(Operator):
- """Copy another selected objects active shape to this one by """
+ """Copy another selected objects active shape to this one by """ \
"""applying the relative offsets"""
bl_idname = "object.shape_key_transfer"
@@ -468,7 +468,7 @@ class ShapeTransfer(Operator):
class JoinUVs(Operator):
- '''Copy UV Layout to objects with matching geometry'''
+ """Copy UV Layout to objects with matching geometry"""
bl_idname = "object.join_uvs"
bl_label = "Join as UVs"
@@ -547,7 +547,7 @@ class JoinUVs(Operator):
class MakeDupliFace(Operator):
- '''Make linked objects into dupli-faces'''
+ """Make linked objects into dupli-faces"""
bl_idname = "object.make_dupli_face"
bl_label = "Make Dupli-Face"
@@ -642,7 +642,7 @@ class IsolateTypeRender(Operator):
class ClearAllRestrictRender(Operator):
- '''Reveal all render objects by setting the hide render flag'''
+ """Reveal all render objects by setting the hide render flag"""
bl_idname = "object.hide_render_clear_all"
bl_label = "Clear All Restrict Render"
bl_options = {'REGISTER', 'UNDO'}
@@ -654,7 +654,7 @@ class ClearAllRestrictRender(Operator):
class TransformsToDeltasAnim(Operator):
- '''Convert object animation for normal transforms to delta transforms'''
+ """Convert object animation for normal transforms to delta transforms"""
bl_idname = "object.anim_transforms_to_deltas"
bl_label = "Animated Transforms to Deltas"
bl_options = {'REGISTER', 'UNDO'}
@@ -700,7 +700,7 @@ class TransformsToDeltasAnim(Operator):
class DupliOffsetFromCursor(Operator):
- '''Set offset used for DupliGroup based on cursor position'''
+ """Set offset used for DupliGroup based on cursor position"""
bl_idname = "object.dupli_offset_from_cursor"
bl_label = "Set Offset From Cursor"
bl_options = {'REGISTER', 'UNDO'}
diff --git a/release/scripts/startup/bl_operators/object_align.py b/release/scripts/startup/bl_operators/object_align.py
index dd052c36ade..a32bb8c5353 100644
--- a/release/scripts/startup/bl_operators/object_align.py
+++ b/release/scripts/startup/bl_operators/object_align.py
@@ -341,7 +341,7 @@ from bpy.props import EnumProperty, BoolProperty
class AlignObjects(Operator):
- '''Align Objects'''
+ """Align Objects"""
bl_idname = "object.align"
bl_label = "Align Objects"
bl_options = {'REGISTER', 'UNDO'}
diff --git a/release/scripts/startup/bl_operators/object_randomize_transform.py b/release/scripts/startup/bl_operators/object_randomize_transform.py
index 834df04fe01..ec0b17b773b 100644
--- a/release/scripts/startup/bl_operators/object_randomize_transform.py
+++ b/release/scripts/startup/bl_operators/object_randomize_transform.py
@@ -95,7 +95,7 @@ from bpy.props import (IntProperty,
class RandomizeLocRotSize(Operator):
- '''Randomize objects loc/rot/scale'''
+ """Randomize objects loc/rot/scale"""
bl_idname = "object.randomize_transform"
bl_label = "Randomize Transform"
bl_options = {'REGISTER', 'UNDO'}
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py
index bf5a57fb39a..0bd9a5065a2 100644
--- a/release/scripts/startup/bl_operators/presets.py
+++ b/release/scripts/startup/bl_operators/presets.py
@@ -24,10 +24,10 @@ from bpy.props import StringProperty, BoolProperty
class AddPresetBase():
- '''Base preset class, only for subclassing
+ """Base preset class, only for subclassing
subclasses must define
- preset_values
- - preset_subdir '''
+ - preset_subdir """
# bl_idname = "script.preset_base_add"
# bl_label = "Add a Python Preset"
bl_options = {'REGISTER'} # only because invoke_props_popup requires.
@@ -179,7 +179,7 @@ class AddPresetBase():
class ExecutePreset(Operator):
- '''Execute a preset'''
+ """Execute a preset"""
bl_idname = "script.execute_preset"
bl_label = "Execute a Python Preset"
@@ -217,7 +217,7 @@ class ExecutePreset(Operator):
class AddPresetRender(AddPresetBase, Operator):
- '''Add a Render Preset'''
+ """Add a Render Preset"""
bl_idname = "render.preset_add"
bl_label = "Add Render Preset"
preset_menu = "RENDER_MT_presets"
@@ -243,7 +243,7 @@ class AddPresetRender(AddPresetBase, Operator):
class AddPresetCamera(AddPresetBase, Operator):
- '''Add a Camera Preset'''
+ """Add a Camera Preset"""
bl_idname = "camera.preset_add"
bl_label = "Add Camera Preset"
preset_menu = "CAMERA_MT_presets"
@@ -262,7 +262,7 @@ class AddPresetCamera(AddPresetBase, Operator):
class AddPresetSSS(AddPresetBase, Operator):
- '''Add a Subsurface Scattering Preset'''
+ """Add a Subsurface Scattering Preset"""
bl_idname = "material.sss_preset_add"
bl_label = "Add SSS Preset"
preset_menu = "MATERIAL_MT_sss_presets"
@@ -290,7 +290,7 @@ class AddPresetSSS(AddPresetBase, Operator):
class AddPresetCloth(AddPresetBase, Operator):
- '''Add a Cloth Preset'''
+ """Add a Cloth Preset"""
bl_idname = "cloth.preset_add"
bl_label = "Add Cloth Preset"
preset_menu = "CLOTH_MT_presets"
@@ -312,7 +312,7 @@ class AddPresetCloth(AddPresetBase, Operator):
class AddPresetFluid(AddPresetBase, Operator):
- '''Add a Fluid Preset'''
+ """Add a Fluid Preset"""
bl_idname = "fluid.preset_add"
bl_label = "Add Fluid Preset"
preset_menu = "FLUID_MT_presets"
@@ -330,7 +330,7 @@ class AddPresetFluid(AddPresetBase, Operator):
class AddPresetSunSky(AddPresetBase, Operator):
- '''Add a Sky & Atmosphere Preset'''
+ """Add a Sky & Atmosphere Preset"""
bl_idname = "lamp.sunsky_preset_add"
bl_label = "Add Sunsky Preset"
preset_menu = "LAMP_MT_sunsky_presets"
@@ -359,7 +359,7 @@ class AddPresetSunSky(AddPresetBase, Operator):
class AddPresetInteraction(AddPresetBase, Operator):
- '''Add an Application Interaction Preset'''
+ """Add an Application Interaction Preset"""
bl_idname = "wm.interaction_preset_add"
bl_label = "Add Interaction Preset"
preset_menu = "USERPREF_MT_interaction_presets"
@@ -385,7 +385,7 @@ class AddPresetInteraction(AddPresetBase, Operator):
class AddPresetTrackingCamera(AddPresetBase, Operator):
- '''Add a Tracking Camera Intrinsics Preset'''
+ """Add a Tracking Camera Intrinsics Preset"""
bl_idname = "clip.camera_preset_add"
bl_label = "Add Camera Preset"
preset_menu = "CLIP_MT_camera_presets"
@@ -408,7 +408,7 @@ class AddPresetTrackingCamera(AddPresetBase, Operator):
class AddPresetTrackingTrackColor(AddPresetBase, Operator):
- '''Add a Clip Track Color Preset'''
+ """Add a Clip Track Color Preset"""
bl_idname = "clip.track_color_preset_add"
bl_label = "Add Track Color Preset"
preset_menu = "CLIP_MT_track_color_presets"
@@ -426,7 +426,7 @@ class AddPresetTrackingTrackColor(AddPresetBase, Operator):
class AddPresetTrackingSettings(AddPresetBase, Operator):
- '''Add a motion tracking settings preset'''
+ """Add a motion tracking settings preset"""
bl_idname = "clip.tracking_settings_preset_add"
bl_label = "Add Tracking Settings Preset"
preset_menu = "CLIP_MT_tracking_settings_presets"
@@ -453,7 +453,7 @@ class AddPresetTrackingSettings(AddPresetBase, Operator):
class AddPresetNodeColor(AddPresetBase, Operator):
- '''Add a Node Color Preset'''
+ """Add a Node Color Preset"""
bl_idname = "node.node_color_preset_add"
bl_label = "Add Node Color Preset"
preset_menu = "NODE_MT_node_color_presets"
@@ -471,7 +471,7 @@ class AddPresetNodeColor(AddPresetBase, Operator):
class AddPresetInterfaceTheme(AddPresetBase, Operator):
- '''Add a theme preset'''
+ """Add a theme preset"""
bl_idname = "wm.interface_theme_preset_add"
bl_label = "Add Tracking Settings Preset"
preset_menu = "USERPREF_MT_interface_theme_presets"
@@ -479,7 +479,7 @@ class AddPresetInterfaceTheme(AddPresetBase, Operator):
class AddPresetKeyconfig(AddPresetBase, Operator):
- '''Add a Key-config Preset'''
+ """Add a Key-config Preset"""
bl_idname = "wm.keyconfig_preset_add"
bl_label = "Add Keyconfig Preset"
preset_menu = "USERPREF_MT_keyconfigs"
@@ -502,7 +502,7 @@ class AddPresetKeyconfig(AddPresetBase, Operator):
class AddPresetOperator(AddPresetBase, Operator):
- '''Add an Application Interaction Preset'''
+ """Add an Application Interaction Preset"""
bl_idname = "wm.operator_preset_add"
bl_label = "Operator Preset"
preset_menu = "WM_MT_operator_presets"
diff --git a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
index 5ee7cf86142..9cb9dfc708c 100644
--- a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
+++ b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
@@ -66,7 +66,7 @@ def guess_player_path(preset):
class PlayRenderedAnim(Operator):
- '''Play back rendered frames/movies using an external player'''
+ """Play back rendered frames/movies using an external player"""
bl_idname = "render.play_rendered_anim"
bl_label = "Play Rendered Animation"
bl_options = {'REGISTER'}
diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py
index c51ec74ddd6..ebb499012ea 100644
--- a/release/scripts/startup/bl_operators/sequencer.py
+++ b/release/scripts/startup/bl_operators/sequencer.py
@@ -25,7 +25,7 @@ from bpy.props import IntProperty
class SequencerCrossfadeSounds(Operator):
- '''Do cross-fading volume animation of two selected sound strips'''
+ """Do cross-fading volume animation of two selected sound strips"""
bl_idname = "sequencer.crossfade_sounds"
bl_label = "Crossfade sounds"
@@ -76,7 +76,7 @@ class SequencerCrossfadeSounds(Operator):
class SequencerCutMulticam(Operator):
- '''Cut multi-cam strip and select camera'''
+ """Cut multi-cam strip and select camera"""
bl_idname = "sequencer.cut_multicam"
bl_label = "Cut multicam"
@@ -118,7 +118,7 @@ class SequencerCutMulticam(Operator):
class SequencerDeinterlaceSelectedMovies(Operator):
- '''Deinterlace all selected movie sources'''
+ """Deinterlace all selected movie sources"""
bl_idname = "sequencer.deinterlace_selected_movies"
bl_label = "Deinterlace Movies"
diff --git a/release/scripts/startup/bl_operators/uvcalc_follow_active.py b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
index d6f657683a5..bcab6f078c2 100644
--- a/release/scripts/startup/bl_operators/uvcalc_follow_active.py
+++ b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
@@ -46,11 +46,11 @@ def extend(obj, operator, EXTEND_MODE):
OTHER_INDEX = 2, 3, 0, 1
def extend_uvs(face_source, face_target, edge_key):
- '''
+ """
Takes 2 faces,
Projects its extends its UV coords onto the face next to it.
Both faces must share an edge
- '''
+ """
def face_edge_vs(vi):
vlen = len(vi)
@@ -224,7 +224,7 @@ def main(context, operator):
class FollowActiveQuads(Operator):
- '''Follow UVs from active quads along continuous face loops'''
+ """Follow UVs from active quads along continuous face loops"""
bl_idname = "uv.follow_active_quads"
bl_label = "Follow Active Quads"
bl_options = {'REGISTER', 'UNDO'}
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
index b184c81d6a7..0a4c44cd52f 100644
--- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py
+++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
@@ -197,12 +197,12 @@ def lightmap_uvpack(meshes,
PREF_BOX_DIV=8,
PREF_MARGIN_DIV=512
):
- '''
+ """
BOX_DIV if the maximum division of the UV map that
a box may be consolidated into.
Basically, a lower value will be slower but waist less space
and a higher value will have more clumpy boxes but more wasted space
- '''
+ """
import time
from math import sqrt
@@ -545,7 +545,7 @@ from bpy.props import BoolProperty, FloatProperty, IntProperty
class LightMapPack(Operator):
- '''Follow UVs from active quads along continuous face loops'''
+ """Follow UVs from active quads along continuous face loops"""
bl_idname = "uv.lightmap_pack"
bl_label = "Lightmap Pack"
diff --git a/release/scripts/startup/bl_operators/uvcalc_smart_project.py b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
index ac4aa96f655..c9b41914419 100644
--- a/release/scripts/startup/bl_operators/uvcalc_smart_project.py
+++ b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
@@ -492,7 +492,7 @@ def mergeUvIslands(islandList):
pass
if Intersect == 2: # Source inside target
- '''
+ """
We have an intersection, if we are inside the target
then move us 1 whole width across,
Its possible this is a bad idea since 2 skinny Angular faces
@@ -500,7 +500,7 @@ def mergeUvIslands(islandList):
since we have already tested for it.
It gives about 10% speedup with minimal errors.
- '''
+ """
# Move the test along its width + SMALL_NUM
#boxLeft += sourceIsland[4] + SMALL_NUM
boxLeft += sourceIsland[4]
@@ -694,11 +694,11 @@ def packIslands(islandList):
islandIdx -=1
continue
- '''Save the offset to be applied later,
+ """Save the offset to be applied later,
we could apply to the UVs now and allign them to the bottom left hand area
of the UV coords like the box packer imagines they are
but, its quicker just to remember their offset and
- apply the packing and offset in 1 pass '''
+ apply the packing and offset in 1 pass """
islandOffsetList.append((minx, miny))
# Add to boxList. use the island idx for the BOX id.
@@ -1104,8 +1104,9 @@ from bpy.props import FloatProperty
class SmartProject(Operator):
- '''This script projection unwraps the selected faces of a mesh ''' \
- '''(it operates on all selected mesh objects, and can be used to unwrap selected faces, or all faces)'''
+ """This script projection unwraps the selected faces of a mesh """ \
+ """(it operates on all selected mesh objects, and can be used """ \
+ """to unwrap selected faces, or all faces)"""
bl_idname = "uv.smart_project"
bl_label = "Smart UV Project"
bl_options = {'REGISTER', 'UNDO'}
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index fc19a989032..2ebc8e80b71 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -31,7 +31,8 @@ from rna_prop_ui import rna_idprop_ui_prop_get, rna_idprop_ui_prop_clear
class MESH_OT_delete_edgeloop(Operator):
- '''Delete an edge loop by merging the faces on each side to a single face loop'''
+ """Delete an edge loop by merging the faces on each side """ \
+ """to a single face loop"""
bl_idname = "mesh.delete_edgeloop"
bl_label = "Delete Edge Loop"
@@ -173,7 +174,7 @@ class BRUSH_OT_active_index_set(Operator):
class WM_OT_context_set_boolean(Operator):
- '''Set a context value'''
+ """Set a context value"""
bl_idname = "wm.context_set_boolean"
bl_label = "Context Set Boolean"
bl_options = {'UNDO', 'INTERNAL'}
@@ -189,7 +190,7 @@ class WM_OT_context_set_boolean(Operator):
class WM_OT_context_set_int(Operator): # same as enum
- '''Set a context value'''
+ """Set a context value"""
bl_idname = "wm.context_set_int"
bl_label = "Context Set"
bl_options = {'UNDO', 'INTERNAL'}
@@ -206,7 +207,7 @@ class WM_OT_context_set_int(Operator): # same as enum
class WM_OT_context_scale_int(Operator):
- '''Scale an int context value'''
+ """Scale an int context value"""
bl_idname = "wm.context_scale_int"
bl_label = "Context Set"
bl_options = {'UNDO', 'INTERNAL'}
@@ -249,7 +250,7 @@ class WM_OT_context_scale_int(Operator):
class WM_OT_context_set_float(Operator): # same as enum
- '''Set a context value'''
+ """Set a context value"""
bl_idname = "wm.context_set_float"
bl_label = "Context Set Float"
bl_options = {'UNDO', 'INTERNAL'}
@@ -266,7 +267,7 @@ class WM_OT_context_set_float(Operator): # same as enum
class WM_OT_context_set_string(Operator): # same as enum
- '''Set a context value'''
+ """Set a context value"""
bl_idname = "wm.context_set_string"
bl_label = "Context Set String"
bl_options = {'UNDO', 'INTERNAL'}
@@ -282,7 +283,7 @@ class WM_OT_context_set_string(Operator): # same as enum
class WM_OT_context_set_enum(Operator):
- '''Set a context value'''
+ """Set a context value"""
bl_idname = "wm.context_set_enum"
bl_label = "Context Set Enum"
bl_options = {'UNDO', 'INTERNAL'}
@@ -298,7 +299,7 @@ class WM_OT_context_set_enum(Operator):
class WM_OT_context_set_value(Operator):
- '''Set a context value'''
+ """Set a context value"""
bl_idname = "wm.context_set_value"
bl_label = "Context Set Value"
bl_options = {'UNDO', 'INTERNAL'}
@@ -319,7 +320,7 @@ class WM_OT_context_set_value(Operator):
class WM_OT_context_toggle(Operator):
- '''Toggle a context value'''
+ """Toggle a context value"""
bl_idname = "wm.context_toggle"
bl_label = "Context Toggle"
bl_options = {'UNDO', 'INTERNAL'}
@@ -338,7 +339,7 @@ class WM_OT_context_toggle(Operator):
class WM_OT_context_toggle_enum(Operator):
- '''Toggle a context value'''
+ """Toggle a context value"""
bl_idname = "wm.context_toggle_enum"
bl_label = "Context Toggle Values"
bl_options = {'UNDO', 'INTERNAL'}
@@ -371,7 +372,7 @@ class WM_OT_context_toggle_enum(Operator):
class WM_OT_context_cycle_int(Operator):
- """Set a context value. Useful for cycling active material, """
+ """Set a context value. Useful for cycling active material, """ \
"""vertex keys, groups' etc"""
bl_idname = "wm.context_cycle_int"
bl_label = "Context Int Cycle"
@@ -406,7 +407,7 @@ class WM_OT_context_cycle_int(Operator):
class WM_OT_context_cycle_enum(Operator):
- '''Toggle a context value'''
+ """Toggle a context value"""
bl_idname = "wm.context_cycle_enum"
bl_label = "Context Enum Cycle"
bl_options = {'UNDO', 'INTERNAL'}
@@ -458,8 +459,8 @@ class WM_OT_context_cycle_enum(Operator):
class WM_OT_context_cycle_array(Operator):
- '''Set a context array value. '''
- '''Useful for cycling the active mesh edit mode'''
+ """Set a context array value """ \
+ """(useful for cycling the active mesh edit mode)"""
bl_idname = "wm.context_cycle_array"
bl_label = "Context Array Cycle"
bl_options = {'UNDO', 'INTERNAL'}
@@ -519,7 +520,7 @@ class WM_OT_context_menu_enum(Operator):
class WM_OT_context_set_id(Operator):
- '''Toggle a context value'''
+ """Toggle a context value"""
bl_idname = "wm.context_set_id"
bl_label = "Set Library ID"
bl_options = {'UNDO', 'INTERNAL'}
@@ -575,7 +576,7 @@ data_path_item = StringProperty(
class WM_OT_context_collection_boolean_set(Operator):
- '''Set boolean values for a collection of items'''
+ """Set boolean values for a collection of items"""
bl_idname = "wm.context_collection_boolean_set"
bl_label = "Context Collection Boolean Set"
bl_options = {'UNDO', 'REGISTER', 'INTERNAL'}
@@ -634,7 +635,7 @@ class WM_OT_context_collection_boolean_set(Operator):
class WM_OT_context_modal_mouse(Operator):
- '''Adjust arbitrary values with mouse input'''
+ """Adjust arbitrary values with mouse input"""
bl_idname = "wm.context_modal_mouse"
bl_label = "Context Modal Mouse"
bl_options = {'GRAB_POINTER', 'BLOCKING', 'UNDO', 'INTERNAL'}
@@ -836,7 +837,7 @@ def _wm_doc_get_id(doc_id, do_url=True, url_prefix=""):
class WM_OT_doc_view_manual(Operator):
- '''Load online manual'''
+ """Load online manual"""
bl_idname = "wm.doc_view_manual"
bl_label = "View Manual"
@@ -881,7 +882,7 @@ class WM_OT_doc_view_manual(Operator):
class WM_OT_doc_view(Operator):
- '''Load online reference docs'''
+ """Load online reference docs"""
bl_idname = "wm.doc_view"
bl_label = "View Documentation"
@@ -905,7 +906,7 @@ class WM_OT_doc_view(Operator):
class WM_OT_doc_edit(Operator):
- '''Load online reference docs'''
+ """Load online reference docs"""
bl_idname = "wm.doc_edit"
bl_label = "Edit Documentation"
@@ -1008,7 +1009,7 @@ rna_max = FloatProperty(
class WM_OT_properties_edit(Operator):
- '''Internal use (edit a property data_path)'''
+ """Internal use (edit a property data_path)"""
bl_idname = "wm.properties_edit"
bl_label = "Edit Property"
bl_options = {'REGISTER'} # only because invoke_props_popup requires.
@@ -1094,7 +1095,7 @@ class WM_OT_properties_edit(Operator):
class WM_OT_properties_add(Operator):
- '''Internal use (edit a property data_path)'''
+ """Internal use (edit a property data_path)"""
bl_idname = "wm.properties_add"
bl_label = "Add Property"
bl_options = {'UNDO'}
@@ -1137,7 +1138,7 @@ class WM_OT_properties_context_change(Operator):
class WM_OT_properties_remove(Operator):
- '''Internal use (edit a property data_path)'''
+ """Internal use (edit a property data_path)"""
bl_idname = "wm.properties_remove"
bl_label = "Remove Property"
bl_options = {'UNDO'}
@@ -1203,7 +1204,7 @@ class WM_OT_appconfig_activate(Operator):
class WM_OT_sysinfo(Operator):
- '''Generate System Info'''
+ """Generate System Info"""
bl_idname = "wm.sysinfo"
bl_label = "System Info"
@@ -1214,7 +1215,7 @@ class WM_OT_sysinfo(Operator):
class WM_OT_copy_prev_settings(Operator):
- '''Copy settings from previous version'''
+ """Copy settings from previous version"""
bl_idname = "wm.copy_prev_settings"
bl_label = "Copy Previous Settings"
@@ -1251,7 +1252,7 @@ class WM_OT_copy_prev_settings(Operator):
class WM_OT_blenderplayer_start(Operator):
- '''Launch the blender-player with the current blend-file'''
+ """Launch the blender-player with the current blend-file"""
bl_idname = "wm.blenderplayer_start"
bl_label = "Start Game In Player"
diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py
index 87ac56c1104..1e9fd5dd8a9 100644
--- a/release/scripts/startup/bl_ui/properties_data_curve.py
+++ b/release/scripts/startup/bl_ui/properties_data_curve.py
@@ -33,7 +33,7 @@ class CurveButtonsPanel():
class CurveButtonsPanelCurve(CurveButtonsPanel):
- '''Same as above but for curves only'''
+ """Same as above but for curves only"""
@classmethod
def poll(cls, context):
@@ -41,7 +41,7 @@ class CurveButtonsPanelCurve(CurveButtonsPanel):
class CurveButtonsPanelActive(CurveButtonsPanel):
- '''Same as above but for curves only'''
+ """Same as above but for curves only"""
@classmethod
def poll(cls, context):