From 1f74789d1250033eed6c5b9c86df5274c1339581 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 8 Feb 2012 04:37:37 +0000 Subject: [PATCH] Correct mathutils documentation, also correct some python spelling errors and add makefile target `check_spelling` --- GNUmakefile | 4 ++++ release/scripts/modules/bpy_extras/anim_utils.py | 2 +- release/scripts/modules/bpy_extras/mesh_utils.py | 6 +++--- .../scripts/modules/console/complete_import.py | 4 ++-- release/scripts/startup/bl_operators/anim.py | 2 +- release/scripts/startup/bl_operators/clip.py | 12 ++++++------ release/scripts/startup/bl_operators/image.py | 2 +- release/scripts/startup/bl_operators/object.py | 8 ++++---- release/scripts/startup/bl_operators/presets.py | 2 +- .../scripts/startup/bl_operators/sequencer.py | 4 ++-- .../startup/bl_operators/uvcalc_follow_active.py | 6 +++--- .../startup/bl_operators/uvcalc_lightmap.py | 4 ++-- .../startup/bl_operators/uvcalc_smart_project.py | 4 ++-- .../startup/bl_operators/vertexpaint_dirt.py | 9 --------- release/scripts/startup/bl_operators/wm.py | 8 ++++---- .../startup/bl_ui/properties_data_curve.py | 4 ++-- .../bl_ui/properties_physics_dynamicpaint.py | 4 ++-- .../scripts/startup/bl_ui/properties_texture.py | 2 -- release/scripts/startup/bl_ui/space_info.py | 2 +- release/scripts/startup/bl_ui/space_logic.py | 4 ++-- release/scripts/startup/bl_ui/space_nla.py | 2 +- release/scripts/startup/bl_ui/space_userpref.py | 10 +++++----- .../startup/bl_ui/space_userpref_keymap.py | 2 +- release/scripts/startup/bl_ui/space_view3d.py | 4 ++-- .../startup/bl_ui/space_view3d_toolbar.py | 16 ++++++++-------- release/scripts/startup/keyingsets_builtins.py | 2 +- release/scripts/templates/ui_menu.py | 2 +- source/blender/makesrna/intern/rna_ID.c | 2 +- .../blender/python/mathutils/mathutils_Vector.c | 15 --------------- 29 files changed, 63 insertions(+), 85 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 478f0c35a1c..367819ecccb 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -169,6 +169,7 @@ help: @echo " * check_cppcheck - run blender source through cppcheck (C & C++)" @echo " * check_splint - run blenders source through splint (C only)" @echo " * check_sparse - run blenders source through sparse (C only)" + @echo " * check_spelling - check for spelling errors (Python only for now)" @echo "" @echo "Documentation Targets (not assosiated with building blender)" @echo " * doc_py - generate sphinx python api docs" @@ -242,6 +243,9 @@ check_sparse: $(CMAKE_CONFIG) cd $(BUILD_DIR) ; python3 $(BLENDER_DIR)/build_files/cmake/cmake_static_check_sparse.py +check_spelling: + cd $(BUILD_DIR) ; PYTHONIOENCODING=utf_8 python3 $(BLENDER_DIR)/source/tools/spell_check_source.py `find $(BLENDER_DIR)/release/scripts -name "*.py" | sort` + # ----------------------------------------------------------------------------- # Documentation diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py index 6b0ab1c3adc..c4ec805a72d 100644 --- a/release/scripts/modules/bpy_extras/anim_utils.py +++ b/release/scripts/modules/bpy_extras/anim_utils.py @@ -158,7 +158,7 @@ def bake_action(frame_start, # ------------------------------------------------------------------------- # Create action - # in case animation data hassnt been created + # in case animation data hasn't been created atd = obj.animation_data_create() if action is None: action = bpy.data.actions.new("Action") diff --git a/release/scripts/modules/bpy_extras/mesh_utils.py b/release/scripts/modules/bpy_extras/mesh_utils.py index 8149675000f..601ffae4796 100644 --- a/release/scripts/modules/bpy_extras/mesh_utils.py +++ b/release/scripts/modules/bpy_extras/mesh_utils.py @@ -167,7 +167,7 @@ def edge_loops_from_faces(mesh, faces=None, seams=()): flipped = False while 1: - # from knowing the last 2, look for th next. + # from knowing the last 2, look for the next. ed_adj = edges[context_loop[-1]] if len(ed_adj) != 2: # the original edge had 2 other edges @@ -175,7 +175,7 @@ def edge_loops_from_faces(mesh, faces=None, seams=()): flipped = True # only flip the list once context_loop.reverse() ed_adj[:] = [] - context_loop.append(other_dir) # save 1 lookiup + context_loop.append(other_dir) # save 1 look-up ed_adj = edges[context_loop[-1]] if len(ed_adj) != 2: @@ -375,7 +375,7 @@ def ngon_tesselate(from_data, indices, fix_loops=True): if s1[0][1] == s1[-1][1]: # remove endpoints double s1.pop() - s2[:] = [] # Empty this segment s2 so we dont use it again. + s2[:] = [] # Empty this segment s2 so we don't use it again. return True joining_segments = True diff --git a/release/scripts/modules/console/complete_import.py b/release/scripts/modules/console/complete_import.py index 63f15d9cf77..8f2b5324cdc 100644 --- a/release/scripts/modules/console/complete_import.py +++ b/release/scripts/modules/console/complete_import.py @@ -44,7 +44,7 @@ changes have been made: import os import sys -TIMEOUT_STORAGE = 3 # Time in secs after which the rootmodules will be stored +TIMEOUT_STORAGE = 3 # Time in secs after which the root-modules will be stored TIMEOUT_GIVEUP = 20 # Time in secs after which we give up ROOT_MODULES = None @@ -53,7 +53,7 @@ ROOT_MODULES = None def get_root_modules(): """ Returns a list containing the names of all the modules available in the - folders of the pythonpath. + folders of the python-path. :returns: modules :rtype: list 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 919677fff8b..748255671dd 100644 --- a/release/scripts/startup/bl_operators/uvcalc_follow_active.py +++ b/release/scripts/startup/bl_operators/uvcalc_follow_active.py @@ -99,7 +99,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]] @@ -156,8 +156,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 99a492fab4a..3159466c5ca 100644 --- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py +++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py @@ -246,10 +246,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 b79fc0c01b3..622d19a0cfa 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 @@ # -# 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" diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py index 3aa995353b2..91230c9dc89 100644 --- a/release/scripts/startup/bl_ui/properties_data_curve.py +++ b/release/scripts/startup/bl_ui/properties_data_curve.py @@ -217,7 +217,7 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel): if is_poly: # These settings are below but its easier to have - # poly's set aside since they use so few settings + # polys set aside since they use so few settings row = layout.row() row.label(text="Cyclic:") row.prop(act_spline, "use_cyclic_u", text="U") @@ -250,7 +250,7 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel): col = split.column() col.prop(act_spline, "use_cyclic_v", text="V") - # its a surface, assume its a nurb. + # its a surface, assume its a nurbs sub = col.column() sub.active = (not act_spline.use_cyclic_v) sub.prop(act_spline, "use_bezier_v", text="V") diff --git a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py index e6801f00fce..d6aeea8ece7 100644 --- a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py +++ b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py @@ -215,7 +215,7 @@ class PHYSICS_PT_dp_canvas_output(PhysicButtonsPanel, Panel): # toggle active preview layout.prop(surface, "preview_id") - # paintmap output + # paint-map output row = layout.row() row.prop_search(surface, "output_name_a", ob.data, "vertex_colors", text="Paintmap layer: ") if surface.output_exists(object=ob, index=0): @@ -225,7 +225,7 @@ class PHYSICS_PT_dp_canvas_output(PhysicButtonsPanel, Panel): row.operator("dpaint.output_toggle", icon=ic, text="").output = 'A' - # wetmap output + # wet-map output row = layout.row() row.prop_search(surface, "output_name_b", ob.data, "vertex_colors", text="Wetmap layer: ") if surface.output_exists(object=ob, index=1): diff --git a/release/scripts/startup/bl_ui/properties_texture.py b/release/scripts/startup/bl_ui/properties_texture.py index 6e54bdde024..13d25e6ac8d 100644 --- a/release/scripts/startup/bl_ui/properties_texture.py +++ b/release/scripts/startup/bl_ui/properties_texture.py @@ -824,7 +824,6 @@ class TEXTURE_PT_mapping(TextureSlotPanel, Panel): idblock = context_tex_datablock(context) tex = context.texture_slot - # textype = context.texture if not isinstance(idblock, Brush): split = layout.split(percentage=0.3) @@ -912,7 +911,6 @@ class TEXTURE_PT_influence(TextureSlotPanel, Panel): idblock = context_tex_datablock(context) - # textype = context.texture tex = context.texture_slot def factor_but(layout, toggle, factor, name): diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py index 95eb49062c0..b6a450e1a02 100644 --- a/release/scripts/startup/bl_ui/space_info.py +++ b/release/scripts/startup/bl_ui/space_info.py @@ -273,7 +273,7 @@ class INFO_MT_add(Menu): def draw(self, context): layout = self.layout - # note, dont use 'EXEC_SCREEN' or operators wont get the 'v3d' context. + # note, don't use 'EXEC_SCREEN' or operators wont get the 'v3d' context. layout.operator_context = 'EXEC_AREA' diff --git a/release/scripts/startup/bl_ui/space_logic.py b/release/scripts/startup/bl_ui/space_logic.py index da6d1f72123..1e68b41c645 100644 --- a/release/scripts/startup/bl_ui/space_logic.py +++ b/release/scripts/startup/bl_ui/space_logic.py @@ -49,8 +49,8 @@ class LOGIC_PT_properties(Panel): sub.prop(prop, "name", text="") row.prop(prop, "type", text="") # get the property from the body, not the game property - # note, don't do this - it's too slow and body can potentually be a really long string. - # row.prop(ob.data, "body", text="") + # note, don't do this - it's too slow and body can potentially be a really long string. + #~ row.prop(ob.data, "body", text="") row.label("See Text Object") else: props = layout.operator("object.game_property_new", text="Add Text Game Property", icon='ZOOMIN') diff --git a/release/scripts/startup/bl_ui/space_nla.py b/release/scripts/startup/bl_ui/space_nla.py index 18d32575bc2..33610f3ba33 100644 --- a/release/scripts/startup/bl_ui/space_nla.py +++ b/release/scripts/startup/bl_ui/space_nla.py @@ -143,7 +143,7 @@ class NLA_MT_edit(Menu): layout.operator_menu_enum("anim.channels_move", "direction", text="Track Ordering...") layout.separator() - # TODO: names of these tools for 'tweakmode' need changing? + # TODO: names of these tools for 'tweak-mode' need changing? if scene.is_nla_tweakmode: layout.operator("nla.tweakmode_exit", text="Stop Tweaking Strip Actions") else: diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 8a2dff8f050..2efeff0e079 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -293,7 +293,7 @@ class USERPREF_PT_edit(Panel): col.label(text="Grease Pencil:") col.prop(edit, "grease_pencil_manhattan_distance", text="Manhattan Distance") col.prop(edit, "grease_pencil_euclidean_distance", text="Euclidean Distance") - #col.prop(edit, "use_grease_pencil_simplify_stroke", text="Simplify Stroke") + #~ col.prop(edit, "use_grease_pencil_simplify_stroke", text="Simplify Stroke") col.prop(edit, "grease_pencil_eraser_radius", text="Eraser Radius") col.prop(edit, "use_grease_pencil_smooth_stroke", text="Smooth Stroke") col.separator() @@ -316,7 +316,7 @@ class USERPREF_PT_edit(Panel): sub = col.column() - # sub.active = edit.use_keyframe_insert_auto # incorrect, timeline can enable + #~ sub.active = edit.use_keyframe_insert_auto # incorrect, time-line can enable sub.prop(edit, "use_keyframe_insert_available", text="Only Insert Available") col.separator() @@ -833,7 +833,7 @@ from .space_userpref_keymap import InputKeyMapPanel class USERPREF_MT_ndof_settings(Menu): - # accessed from the window keybindings in C (only) + # accessed from the window key-bindings in C (only) bl_label = "3D Mouse Settings" def draw(self, context): @@ -965,7 +965,7 @@ class USERPREF_PT_input(Panel, InputKeyMapPanel): class USERPREF_MT_addons_dev_guides(Menu): bl_label = "Development Guides" - # menu to open webpages with addons development guides + # menu to open web-pages with addons development guides def draw(self, context): layout = self.layout layout.operator("wm.url_open", text="API Concepts", icon='URL').url = "http://wiki.blender.org/index.php/Dev:2.5/Py/API/Intro" @@ -1097,7 +1097,7 @@ class USERPREF_PT_addons(Panel): else: row.operator("wm.addon_enable", icon='CHECKBOX_DEHLT', text="", emboss=False).module = module_name - # Expanded UI (only if additional infos are available) + # Expanded UI (only if additional info is available) if info["show_expanded"]: if info["description"]: split = colsub.row().split(percentage=0.15) diff --git a/release/scripts/startup/bl_ui/space_userpref_keymap.py b/release/scripts/startup/bl_ui/space_userpref_keymap.py index 6fa3aabaeb8..030e1ee0f6d 100644 --- a/release/scripts/startup/bl_ui/space_userpref_keymap.py +++ b/release/scripts/startup/bl_ui/space_userpref_keymap.py @@ -180,7 +180,7 @@ class InputKeyMapPanel: sub.prop(kmi, "propvalue", text="") else: # One day... - # sub.prop_search(kmi, "idname", bpy.context.window_manager, "operators_all", text="") + #~ sub.prop_search(kmi, "idname", bpy.context.window_manager, "operators_all", text="") sub.prop(kmi, "idname", text="") sub = split.column() diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 1dba79b34d7..dff9ca4d919 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1637,8 +1637,8 @@ class VIEW3D_MT_edit_mesh_edges(Menu): layout.operator("TRANSFORM_OT_edge_crease") layout.operator("mesh.loop_multi_select", text="Edge Loop").ring = False - # uiItemO(layout, "Loopcut", 0, "mesh.loop_cut"); // CutEdgeloop(em, 1); - # uiItemO(layout, "Edge Slide", 0, "mesh.edge_slide"); // EdgeSlide(em, 0,0.0); + #~ uiItemO(layout, "Loopcut", 0, "mesh.loop_cut"); // CutEdgeloop(em, 1); + #~ uiItemO(layout, "Edge Slide", 0, "mesh.edge_slide"); // EdgeSlide(em, 0,0.0); layout.operator("mesh.loop_multi_select", text="Edge Ring").ring = True diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index aa7cec0c01a..5171a6dd47d 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1051,10 +1051,10 @@ class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel): self.unified_paint_settings(col, context) # Commented out because the Apply button isn't an operator yet, making these settings useless -# col.label(text="Gamma:") -# col.prop(wpaint, "gamma", text="") -# col.label(text="Multiply:") -# col.prop(wpaint, "mul", text="") +#~ col.label(text="Gamma:") +#~ col.prop(wpaint, "gamma", text="") +#~ col.label(text="Multiply:") +#~ col.prop(wpaint, "mul", text="") # Also missing now: # Soft, Vertex-Group, X-Mirror and "Clear" Operator. @@ -1081,10 +1081,10 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel): self.unified_paint_settings(col, context) # Commented out because the Apply button isn't an operator yet, making these settings useless -# col.label(text="Gamma:") -# col.prop(vpaint, "gamma", text="") -# col.label(text="Multiply:") -# col.prop(vpaint, "mul", text="") +#~ col.label(text="Gamma:") +#~ col.prop(vpaint, "gamma", text="") +#~ col.label(text="Multiply:") +#~ col.prop(vpaint, "mul", text="") # ********** default tools for texture-paint **************** diff --git a/release/scripts/startup/keyingsets_builtins.py b/release/scripts/startup/keyingsets_builtins.py index bc0252aa616..1caf7c43983 100644 --- a/release/scripts/startup/keyingsets_builtins.py +++ b/release/scripts/startup/keyingsets_builtins.py @@ -326,7 +326,7 @@ class BUILTIN_KSI_WholeCharacter(KeyingSetInfo): for i in range(3): if not bone.lock_rotation[i]: - ksi.addProp(ks, bone, prop, i + 1) # i + 1, since here x,y,z = 1,2,3, and w=0 + ksi.addProp(ks, bone, prop, i + 1) # i + 1, since here x/y/z = 1,2,3, and w=0 elif True not in bone.lock_rotation: # if axis-angle rotations get locked as eulers, then it's too messy to allow anything # other than all open unless we keyframe the whole lot diff --git a/release/scripts/templates/ui_menu.py b/release/scripts/templates/ui_menu.py index d3c94b86809..a21e5ed86c8 100644 --- a/release/scripts/templates/ui_menu.py +++ b/release/scripts/templates/ui_menu.py @@ -15,7 +15,7 @@ class CustomMenu(bpy.types.Menu): layout.label(text="Hello world!", icon='WORLD_DATA') - # use an operator enum property to populate a submenu + # use an operator enum property to populate a sub-menu layout.operator_menu_enum("object.select_by_type", property="type", text="Select All by Type...", diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index eed178b238d..de0cd6d9c59 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -232,7 +232,7 @@ StructRNA *rna_PropertyGroup_register(Main *UNUSED(bmain), ReportList *reports, /* note: it looks like there is no length limit on the srna id since its * just a char pointer, but take care here, also be careful that python - * owns the string pointer which it could potentually free while blender + * owns the string pointer which it could potentially free while blender * is running. */ if(BLI_strnlen(identifier, MAX_IDPROP_NAME) == MAX_IDPROP_NAME) { BKE_reportf(reports, RPT_ERROR, "registering id property class: '%s' is too long, maximum length is " STRINGIFY(MAX_IDPROP_NAME), identifier); diff --git a/source/blender/python/mathutils/mathutils_Vector.c b/source/blender/python/mathutils/mathutils_Vector.c index 0ca8878c96a..dec701d5fc3 100644 --- a/source/blender/python/mathutils/mathutils_Vector.c +++ b/source/blender/python/mathutils/mathutils_Vector.c @@ -378,9 +378,6 @@ PyDoc_STRVAR(Vector_resize_doc, ".. method:: resize(size=3)\n" "\n" " Resize the vector to have size number of elements.\n" -"\n" -" :return: an instance of itself\n" -" :rtype: :class:`Vector`\n" ); static PyObject *Vector_resize(VectorObject *self, PyObject *value) { @@ -473,9 +470,6 @@ PyDoc_STRVAR(Vector_resize_2d_doc, ".. method:: resize_2d()\n" "\n" " Resize the vector to 2D (x, y).\n" -"\n" -" :return: an instance of itself\n" -" :rtype: :class:`Vector`\n" ); static PyObject *Vector_resize_2d(VectorObject *self) { @@ -508,9 +502,6 @@ PyDoc_STRVAR(Vector_resize_3d_doc, ".. method:: resize_3d()\n" "\n" " Resize the vector to 3D (x, y, z).\n" -"\n" -" :return: an instance of itself\n" -" :rtype: :class:`Vector`\n" ); static PyObject *Vector_resize_3d(VectorObject *self) { @@ -546,9 +537,6 @@ PyDoc_STRVAR(Vector_resize_4d_doc, ".. method:: resize_4d()\n" "\n" " Resize the vector to 4D (x, y, z, w).\n" -"\n" -" :return: an instance of itself\n" -" :rtype: :class:`Vector`\n" ); static PyObject *Vector_resize_4d(VectorObject *self) { @@ -2676,9 +2664,6 @@ PyDoc_STRVAR(Vector_negate_doc, ".. method:: negate()\n" "\n" " Set all values to their negative.\n" -"\n" -" :return: an instance of itself\n" -" :rtype: :class:`Vector`\n" ); static PyObject *Vector_negate(VectorObject *self) {