Cleanup: spelling

This commit is contained in:
Campbell Barton 2019-08-11 22:41:04 +10:00
parent a5f59bffd6
commit 0d719fcacb
14 changed files with 18 additions and 19 deletions

@ -565,8 +565,7 @@ float3 Camera::transform_raster_to_world(float raster_x, float raster_y)
BoundBox Camera::viewplane_bounds_get() BoundBox Camera::viewplane_bounds_get()
{ {
/* TODO(sergey): This is all rather stupid, but is there a way to perform /* TODO(sergey): This is all rather stupid, but is there a way to perform
* checks we need in a more clear and smart fasion? * checks we need in a more clear and smart fashion? */
*/
BoundBox bounds = BoundBox::empty; BoundBox bounds = BoundBox::empty;
if (type == CAMERA_PANORAMA) { if (type == CAMERA_PANORAMA) {

@ -20,7 +20,7 @@
# <pep8 compliant> # <pep8 compliant>
# Preprocess right-to-left languages. # Pre-process right-to-left languages.
# You can use it either standalone, or through import_po_from_branches or # You can use it either standalone, or through import_po_from_branches or
# update_trunk. # update_trunk.
# #

@ -79,7 +79,7 @@ def generate(context, space_type):
use_release_confirm = True use_release_confirm = True
# Generate items when no keys are mapped. # Generate items when no keys are mapped.
use_auto_keymap_alpha = False # Map manially in the default keymap use_auto_keymap_alpha = False # Map manually in the default key-map.
use_auto_keymap_num = True use_auto_keymap_num = True
# Temporary, only create so we can pass 'properties' to find_item_from_operator. # Temporary, only create so we can pass 'properties' to find_item_from_operator.

@ -188,8 +188,8 @@ class BPyOpsSubModOp:
# Get the operator from blender # Get the operator from blender
wm = context.window_manager wm = context.window_manager
# run to account for any rna values the user changes. # Run to account for any RNA values the user changes.
# NOTE: We only update active vew layer, since that's what # NOTE: We only update active view-layer, since that's what
# operators are supposed to operate on. There might be some # operators are supposed to operate on. There might be some
# corner cases when operator need a full scene update though. # corner cases when operator need a full scene update though.
BPyOpsSubModOp._view_layer_update(context) BPyOpsSubModOp._view_layer_update(context)

@ -73,7 +73,7 @@ def complete_indices(word, namespace, obj=None, base=None):
:param namespace: namespace :param namespace: namespace
:type namespace: dict :type namespace: dict
:param obj: object evaluated from base :param obj: object evaluated from base
:param base: substring which can be evaluated into an object :param base: sub-string which can be evaluated into an object.
:type base: str :type base: str
:returns: completion matches :returns: completion matches
:rtype: list of str :rtype: list of str

@ -85,7 +85,7 @@ def RKS_POLL_selected_items(ksi, context):
# Iterator Callbacks # Iterator Callbacks
# all selected objects or pose bones, depending on which we've got # All selected objects or pose bones, depending on which we've got.
def RKS_ITER_selected_item(ksi, context, ks): def RKS_ITER_selected_item(ksi, context, ks):
ob = context.active_object ob = context.active_object
if ob and ob.mode == 'POSE': if ob and ob.mode == 'POSE':
@ -96,13 +96,13 @@ def RKS_ITER_selected_item(ksi, context, ks):
ksi.generate(context, ks, ob) ksi.generate(context, ks, ob)
# all selected objects only # All selected objects only.
def RKS_ITER_selected_objects(ksi, context, ks): def RKS_ITER_selected_objects(ksi, context, ks):
for ob in context.selected_objects: for ob in context.selected_objects:
ksi.generate(context, ks, ob) ksi.generate(context, ks, ob)
# all seelcted bones only # All selected bones only.
def RKS_ITER_selected_bones(ksi, context, ks): def RKS_ITER_selected_bones(ksi, context, ks):
for bone in context.selected_pose_bones: for bone in context.selected_pose_bones:
ksi.generate(context, ks, bone) ksi.generate(context, ks, bone)

@ -3063,7 +3063,7 @@ def km_grease_pencil_stroke_edit_mode(params):
{"properties": [("mode", 'GPENCIL_SHRINKFATTEN')]}), {"properties": [("mode", 'GPENCIL_SHRINKFATTEN')]}),
("transform.transform", {"type": 'F', "value": 'PRESS', "shift": True}, ("transform.transform", {"type": 'F', "value": 'PRESS', "shift": True},
{"properties": [("mode", 'GPENCIL_OPACITY')]}), {"properties": [("mode", 'GPENCIL_OPACITY')]}),
# Proportonal editing # Proportional editing.
*_template_items_proportional_editing(connected=True), *_template_items_proportional_editing(connected=True),
# Add menu # Add menu
("object.gpencil_add", {"type": 'A', "value": 'PRESS', "shift": True}, None), ("object.gpencil_add", {"type": 'A', "value": 'PRESS', "shift": True}, None),

@ -394,7 +394,7 @@ def km_user_interface(params):
("ui.copy_data_path_button", {"type": 'C', "value": 'PRESS', "ctrl": True}, None), ("ui.copy_data_path_button", {"type": 'C', "value": 'PRESS', "ctrl": True}, None),
("ui.copy_data_path_button", {"type": 'C', "value": 'PRESS', "ctrl": True, "alt": True}, ("ui.copy_data_path_button", {"type": 'C', "value": 'PRESS', "ctrl": True, "alt": True},
{"properties": [("full_path", True)]}), {"properties": [("full_path", True)]}),
# rames and drivers # Frames and drivers.
("anim.keyframe_insert_button", {"type": 'S', "value": 'PRESS'}, None), ("anim.keyframe_insert_button", {"type": 'S', "value": 'PRESS'}, None),
("anim.keyframe_delete_button", {"type": 'S', "value": 'PRESS', "alt": True}, None), ("anim.keyframe_delete_button", {"type": 'S', "value": 'PRESS', "alt": True}, None),
("anim.keyframe_clear_button", {"type": 'S', "value": 'PRESS', "shift": True, "alt": True}, None), ("anim.keyframe_clear_button", {"type": 'S', "value": 'PRESS', "shift": True, "alt": True}, None),
@ -2500,7 +2500,7 @@ def km_grease_pencil_stroke_weight_mode(params):
# Brush strength # Brush strength
("wm.radial_control", {"type": 'U', "value": 'PRESS', "shift": True}, ("wm.radial_control", {"type": 'U', "value": 'PRESS', "shift": True},
{"properties": [("data_path_primary", 'tool_settings.gpencil_sculpt.weight_brush.strength')]}), {"properties": [("data_path_primary", 'tool_settings.gpencil_sculpt.weight_brush.strength')]}),
# Brush sze # Brush size.
("wm.radial_control", {"type": 'S', "value": 'PRESS'}, ("wm.radial_control", {"type": 'S', "value": 'PRESS'},
{"properties": [("data_path_primary", 'tool_settings.gpencil_sculpt.weight_brush.size')]}), {"properties": [("data_path_primary", 'tool_settings.gpencil_sculpt.weight_brush.size')]}),
# Display # Display

@ -4941,7 +4941,7 @@ class VIEW3D_PT_collections(Panel):
layout.use_property_split = False layout.use_property_split = False
view_layer = context.view_layer view_layer = context.view_layer
# We pass index 0 here beause the index is increased # We pass index 0 here because the index is increased
# so the first real index is 1 # so the first real index is 1
# And we start with index as 1 because we skip the master collection # And we start with index as 1 because we skip the master collection
self._draw_collection(layout, view_layer, view_layer.layer_collection, 0) self._draw_collection(layout, view_layer, view_layer.layer_collection, 0)

@ -96,7 +96,7 @@ static void covariance_m_vn_ex_task_cb(void *__restrict userdata,
* \param center: the center (or mean point) of cos_vn. If NULL, * \param center: the center (or mean point) of cos_vn. If NULL,
* it is assumed cos_vn is already centered. * it is assumed cos_vn is already centered.
* \param use_sample_correction: whether to apply sample correction * \param use_sample_correction: whether to apply sample correction
* (i.e. get 'sample varince' instead of 'population variance'). * (i.e. get 'sample variance' instead of 'population variance').
* \return r_covmat the computed covariance matrix. * \return r_covmat the computed covariance matrix.
*/ */
void BLI_covariance_m_vn_ex(const int n, void BLI_covariance_m_vn_ex(const int n,

@ -149,7 +149,7 @@ typedef struct TaskThreadLocalStorage {
* without "interrupting" for task execution. * without "interrupting" for task execution.
* *
* We try to accumulate as much tasks as possible in a local queue without * We try to accumulate as much tasks as possible in a local queue without
* any locks first, and then we push all of them into a scheduler's queue * any locks first, and then we push all of them into a schedulers queue
* from within a single mutex lock. * from within a single mutex lock.
*/ */
bool do_delayed_push; bool do_delayed_push;

@ -531,7 +531,7 @@ void DepsgraphRelationBuilder::build_collection(LayerCollection *from_layer_coll
/* If we came from layer collection we don't go deeper, view layer /* If we came from layer collection we don't go deeper, view layer
* builder takes care of going deeper. * builder takes care of going deeper.
* *
* NOTE: Do early output before tagging build as done, so possbile * NOTE: Do early output before tagging build as done, so possible
* subsequent builds from outside of the layer collection properly * subsequent builds from outside of the layer collection properly
* recurses into all the nested objects and collections. */ * recurses into all the nested objects and collections. */
return; return;

@ -1027,7 +1027,7 @@ class SceneBackup {
* *
* NOTE: Scene can not disappear after relations update, because otherwise the entire dependency * NOTE: Scene can not disappear after relations update, because otherwise the entire dependency
* graph will be gone. This means we don't need to compare original scene pointer, or worry about * graph will be gone. This means we don't need to compare original scene pointer, or worry about
* freeing those if they cant' be restorted: we just copy them over to a new scene. */ * freeing those if they cant' be restored: we just copy them over to a new scene. */
void *sound_scene; void *sound_scene;
void *playback_handle; void *playback_handle;
void *sound_scrub_handle; void *sound_scrub_handle;

@ -250,7 +250,7 @@ class GetSteerableViewMapDensityF1D : public UnaryFunction1D<double> {
// GetViewMapGradientNormF1D // GetViewMapGradientNormF1D
/*! Returns the density of the viewmap for a given Interface1D. The density of each FEdge is /*! Returns the density of the viewmap for a given Interface1D. The density of each FEdge is
* evaluated in the proper steerable ViewMap depending on its oorientation. * evaluated in the proper steerable ViewMap depending on its orientation.
*/ */
class GetViewMapGradientNormF1D : public UnaryFunction1D<double> { class GetViewMapGradientNormF1D : public UnaryFunction1D<double> {
private: private: