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>2012-02-08 09:45:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-08 09:45:16 +0400
commit19d0f93099b0964fca66c4f4b1651260b749a73d (patch)
treedbc9dabdc2e87dba0d35d0a947b70abb5f07af08 /release/scripts/startup/bl_operators
parent873fe5cb59deac0918135e2226c6d2b3cbc743ef (diff)
parent054e10ac135eee0eb6d4a0e3ca5a3e8ae5a94cea (diff)
svn merge ^/trunk/blender -r43934:43976
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r--release/scripts/startup/bl_operators/anim.py2
-rw-r--r--release/scripts/startup/bl_operators/clip.py12
-rw-r--r--release/scripts/startup/bl_operators/image.py2
-rw-r--r--release/scripts/startup/bl_operators/object.py8
-rw-r--r--release/scripts/startup/bl_operators/presets.py2
-rw-r--r--release/scripts/startup/bl_operators/sequencer.py4
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_follow_active.py6
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_lightmap.py4
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_smart_project.py4
-rw-r--r--release/scripts/startup/bl_operators/vertexpaint_dirt.py9
-rw-r--r--release/scripts/startup/bl_operators/wm.py8
11 files changed, 26 insertions, 35 deletions
diff --git a/release/scripts/startup/bl_operators/anim.py b/release/scripts/startup/bl_operators/anim.py
index 29e8a396088..066e1835476 100644
--- a/release/scripts/startup/bl_operators/anim.py
+++ b/release/scripts/startup/bl_operators/anim.py
@@ -227,7 +227,7 @@ class BakeAction(Operator):
class ClearUselessActions(Operator):
- """Mark actions with no F-Curves for deletion after save+reload of """ \
+ """Mark actions with no F-Curves for deletion after save & reload of """ \
"""file preserving \"action libraries\""""
bl_idname = "anim.clear_useless_actions"
bl_label = "Clear Useless Actions"
diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py
index aa4f3a35e6d..9e4a5819961 100644
--- a/release/scripts/startup/bl_operators/clip.py
+++ b/release/scripts/startup/bl_operators/clip.py
@@ -275,8 +275,8 @@ class CLIP_OT_delete_proxy(Operator):
class CLIP_OT_set_viewport_background(Operator):
- """Set current movie clip as a camera background in 3D viewport \
-(works only when a 3D viewport is visible)"""
+ """Set current movie clip as a camera background in 3D view-port """ \
+ """(works only when a 3D view-port is visible)"""
bl_idname = "clip.set_viewport_background"
bl_label = "Set as Background"
@@ -314,9 +314,9 @@ object's movement caused by this constraint"""
frame_current = scene.frame_current
matrices = []
- # Find constraint which would eb converting
+ # Find constraint which would be converting
# TODO: several camera solvers and track followers would fail,
- # but can't think about eal workflow where it'll be useful
+ # but can't think about real work-flow where it'll be useful
for x in ob.constraints:
if x.type in {'CAMERA_SOLVER', 'FOLLOW_TRACK', 'OBJECT_SOLVER'}:
con = x
@@ -368,7 +368,7 @@ object's movement caused by this constraint"""
ob.animation_data_create()
- # Apply matrices on object and insert keyframes
+ # Apply matrices on object and insert key-frames
i = 0
for x in range(sfra, efra + 1):
scene.frame_set(x)
@@ -791,7 +791,7 @@ class CLIP_OT_setup_tracking_scene(Operator):
all_layers = self._mergeLayers(fg.layers, bg.layers)
- # enshure all lamps are active on foreground and background
+ # ensure all lamps are active on foreground and background
has_lamp = False
has_mesh = False
for ob in scene.objects:
diff --git a/release/scripts/startup/bl_operators/image.py b/release/scripts/startup/bl_operators/image.py
index 55ad8a77d43..4c04aa3b7f3 100644
--- a/release/scripts/startup/bl_operators/image.py
+++ b/release/scripts/startup/bl_operators/image.py
@@ -128,7 +128,7 @@ class SaveDirty(Operator):
class ProjectEdit(Operator):
- """Edit a snapshot of the viewport in an external image editor"""
+ """Edit a snapshot of the view-port in an external image editor"""
bl_idname = "image.project_edit"
bl_label = "Project Edit"
bl_options = {'REGISTER'}
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index b7c6b858913..019cd37066c 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -334,8 +334,8 @@ class ShapeTransfer(Operator):
orig_shape_coords = me_cos(ob_act.active_shape_key.data)
orig_normals = me_nos(me.vertices)
- # the actual mverts location isn't as reliable as the base shape :S
- # orig_coords = me_cos(me.vertices)
+ # actual mesh vertex location isn't as reliable as the base shape :S
+ #~ orig_coords = me_cos(me.vertices)
orig_coords = me_cos(me.shape_keys.key_blocks[0].data)
for ob_other in objects:
@@ -653,8 +653,8 @@ class MakeDupliFace(Operator):
class IsolateTypeRender(Operator):
- '''Hide unselected render objects of same type as active ''' \
- '''by setting the hide render flag'''
+ """Hide unselected render objects of same type as active """ \
+ """by setting the hide render flag"""
bl_idname = "object.isolate_type_render"
bl_label = "Restrict Render Unselected"
bl_options = {'REGISTER', 'UNDO'}
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py
index 1aecfbbaa77..946543cc864 100644
--- a/release/scripts/startup/bl_operators/presets.py
+++ b/release/scripts/startup/bl_operators/presets.py
@@ -427,7 +427,7 @@ class AddPresetInterfaceTheme(AddPresetBase, Operator):
class AddPresetKeyconfig(AddPresetBase, Operator):
- '''Add a Keyconfig Preset'''
+ '''Add a Key-config Preset'''
bl_idname = "wm.keyconfig_preset_add"
bl_label = "Add Keyconfig Preset"
preset_menu = "USERPREF_MT_keyconfigs"
diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py
index 39c73f20664..c51ec74ddd6 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 crossfading 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 multicam strip and select camera'''
+ '''Cut multi-cam strip and select camera'''
bl_idname = "sequencer.cut_multicam"
bl_label = "Cut multicam"
diff --git a/release/scripts/startup/bl_operators/uvcalc_follow_active.py b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
index 338dc1a2a1e..0df86a3869e 100644
--- a/release/scripts/startup/bl_operators/uvcalc_follow_active.py
+++ b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
@@ -98,7 +98,7 @@ def extend(obj, operator, EXTEND_MODE):
iA = 1
iB = 0
- # Set the target UV's touching source face, no tricky calc needed,
+ # Set the target UV's touching source face, no tricky calculations needed,
uvs_vhash_target[edgepair_inner_target[0]][:] = uvs_vhash_source[edgepair_inner_source[iA]]
uvs_vhash_target[edgepair_inner_target[1]][:] = uvs_vhash_source[edgepair_inner_source[iB]]
@@ -152,8 +152,8 @@ def extend(obj, operator, EXTEND_MODE):
return
# Modes
- # 0 unsearched
- # 1:mapped, use search from this face. - removed!!
+ # 0 not yet searched for.
+ # 1:mapped, use search from this face - removed!
# 2:all siblings have been searched. don't search again.
face_modes = [0] * len(face_sel)
face_modes[face_act_local_index] = 1 # extend UV's from this face.
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
index 793b2a4ce2a..c7e35943e35 100644
--- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py
+++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
@@ -247,10 +247,10 @@ def lightmap_uvpack(meshes,
pretty_faces = [prettyface(f) for f in face_sel if len(f.vertices) == 4]
- # Do we have any tri's
+ # Do we have any triangles?
if len(pretty_faces) != len(face_sel):
- # Now add tri's, not so simple because we need to pair them up.
+ # Now add triangles, not so simple because we need to pair them up.
def trylens(f):
# f must be a tri
diff --git a/release/scripts/startup/bl_operators/uvcalc_smart_project.py b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
index 8fee21cdad5..1464b83ab95 100644
--- a/release/scripts/startup/bl_operators/uvcalc_smart_project.py
+++ b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
@@ -71,7 +71,7 @@ def pointInTri2D(v, v1, v2, v3):
mtx = Matrix((side1, side2, nor))
- # Zero area 2d tri, even tho we throw away zerop area faces
+ # Zero area 2d tri, even tho we throw away zero area faces
# the projection UV can result in a zero area UV.
if not mtx.determinant():
dict_matrix[key] = None
@@ -162,7 +162,7 @@ def island2Edge(island):
return length_sorted_edges, [v.to_3d() for v in unique_points.values()]
# ========================= NOT WORKING????
-# Find if a points inside an edge loop, un-ordered.
+# Find if a points inside an edge loop, unordered.
# pt is and x/y
# edges are a non ordered loop of edges.
# offsets are the edge x and y offset.
diff --git a/release/scripts/startup/bl_operators/vertexpaint_dirt.py b/release/scripts/startup/bl_operators/vertexpaint_dirt.py
index ea58864f7c2..85be72b48d8 100644
--- a/release/scripts/startup/bl_operators/vertexpaint_dirt.py
+++ b/release/scripts/startup/bl_operators/vertexpaint_dirt.py
@@ -21,15 +21,6 @@
# <pep8 compliant>
-# History
-#
-# Originally written by Campbell Barton aka ideasman42
-#
-# 2009-11-01: * 2.5 port by Keith "Wahooney" Boshoff
-# * Replaced old method with my own, speed is similar (about 0.001 sec on Suzanne)
-# but results are far more accurate
-#
-
def applyVertexDirt(me, blur_iterations, blur_strength, clamp_dirt, clamp_clean, dirt_only):
from mathutils import Vector
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index e9cb8af1cbd..61840829900 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -397,7 +397,7 @@ class WM_OT_context_cycle_int(Operator):
exec("context.%s = value" % data_path)
if value != eval("context.%s" % data_path):
- # relies on rna clamping int's out of the range
+ # relies on rna clamping integers out of the range
if self.reverse:
value = (1 << 31) - 1
else:
@@ -731,7 +731,7 @@ class WM_OT_context_modal_mouse(Operator):
class WM_OT_url_open(Operator):
- "Open a website in the Webbrowser"
+ "Open a website in the web-browser"
bl_idname = "wm.url_open"
bl_label = ""
@@ -1180,7 +1180,7 @@ class WM_OT_copy_prev_settings(Operator):
class WM_OT_blenderplayer_start(Operator):
- '''Launch the Blenderplayer with the current blendfile'''
+ '''Launch the blender-player with the current blend-file'''
bl_idname = "wm.blenderplayer_start"
bl_label = "Start"
@@ -1202,7 +1202,7 @@ class WM_OT_blenderplayer_start(Operator):
class WM_OT_keyconfig_test(Operator):
- "Test keyconfig for conflicts"
+ "Test key-config for conflicts"
bl_idname = "wm.keyconfig_test"
bl_label = "Test Key Configuration for Conflicts"