cleanup: fix typos in comments and docs

Followup to https://developer.blender.org/D10288

Reviewed By: Blendify

Differential Revision: https://developer.blender.org/D10346
This commit is contained in:
luzpaz 2021-11-16 18:44:04 -05:00 committed by Aaron Carlisle
parent 8290edefad
commit dea26253a0
16 changed files with 17 additions and 17 deletions

View File

@ -529,7 +529,7 @@ function(SETUP_LIBDIRS)
# NOTE: For all new libraries, use absolute library paths.
# This should eventually be phased out.
# APPLE plaform uses full paths for linking libraries, and avoids link_directories.
# APPLE platform uses full paths for linking libraries, and avoids link_directories.
if(NOT MSVC AND NOT APPLE)
link_directories(${JPEG_LIBPATH} ${PNG_LIBPATH} ${ZLIB_LIBPATH} ${FREETYPE_LIBPATH})

View File

@ -27,7 +27,7 @@ if(WITH_WINDOWS_BUNDLE_CRT)
# Install the CRT to the blender.crt Sub folder.
install(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION ./blender.crt COMPONENT Libraries)
# Generating the manifest is a relativly expensive operation since
# Generating the manifest is a relatively expensive operation since
# it is collecting an sha1 hash for every file required. so only do
# this work when the libs have either changed or the manifest does
# not exist yet.

View File

@ -11,7 +11,7 @@ import queue
execution_queue = queue.Queue()
# This function can savely be called in another thread.
# This function can safely be called in another thread.
# The function will be executed when the timer runs the next time.
def run_in_main_thread(function):
execution_queue.put(function)

View File

@ -728,7 +728,7 @@ Abusing RNA property callbacks
------------------------------
Python-defined RNA properties can have custom callbacks. Trying to perform complex operations
from there, like calling an operator, may work, but is not officialy recommended nor supported.
from there, like calling an operator, may work, but is not officially recommended nor supported.
Main reason is that those callback should be very fast, but additionally, it may for example
create issues with undo/redo system (most operators store an history step, and editing an RNA

View File

@ -42,7 +42,7 @@ roles:
# For interop between configs, and to determine XYZ for rendering
aces_interchange: Linear ACES
# Specifed by OCIO, not used in Blender
# Specified by OCIO, not used in Blender
color_timing: Filmic Log
compositing_log: Filmic Log
default: Linear

View File

@ -12,6 +12,6 @@ Build pipeline snap tracks and channels
- Test builds for the upcoming stable release - *not used for now*
<track>/beta
- Nightly automated builds provided by a release branch
<track>/egde/<branch>
<track>/edge/<branch>
- Nightly or on demand builds - will also make use of branch
```

View File

@ -97,7 +97,7 @@ def extract_release_notes(version: str, task_id: int):
# Process
1. Retrieval of description of the gived `task_id`.
1. Retrieval of description of the given `task_id`.
2. Find rows for the given `version` and convert to `ReleaseLogLine`.
3. based on the associated task or commit retrieves the title of the log
line.

View File

@ -877,7 +877,7 @@ def dump_messages(do_messages, do_checks, settings):
addons = utils.enable_addons(support={"OFFICIAL"})
# Note this is not needed if we have been started with factory settings, but just in case...
# XXX This is not working well, spent a whole day trying to understand *why* we still have references of
# those removed calsses in things like `bpy.types.OperatorProperties.__subclasses__()`
# those removed classes in things like `bpy.types.OperatorProperties.__subclasses__()`
# (could not even reproduce it from regular py console in Blender with UI...).
# For some reasons, cleanup does not happen properly, *and* we have no way to tell which class is valid
# and which has been unregistered. So for now, just go for the dirty, easy way: do not disable add-ons. :(

View File

@ -778,7 +778,7 @@ class I18nMessages:
try:
import bpy
except ModuleNotFoundError:
print("Could not import bpy, find_best_messages_matches must be run from whithin Blender.")
print("Could not import bpy, find_best_messages_matches must be run from within Blender.")
return
# Build helper mappings.

View File

@ -108,7 +108,7 @@ def execfile(filepath, *, mod=None):
mod_orig = modules.get(mod_name, None)
modules[mod_name] = mod
# No error supression, just ensure `sys.modules[mod_name]` is properly restored in the case of an error.
# No error suppression, just ensure `sys.modules[mod_name]` is properly restored in the case of an error.
try:
mod_spec.loader.exec_module(mod)
finally:

View File

@ -720,7 +720,7 @@ class Gizmo(StructRNA):
# Dummy class to keep the reference in `bpy_types_dict` and avoid
# erros like: "TypeError: expected GizmoGroup subclass of class ..."
# errors like: "TypeError: expected GizmoGroup subclass of class ..."
class GizmoGroup(StructRNA):
__slots__ = ()

View File

@ -202,7 +202,7 @@ class Prefs(bpy.types.KeyConfigPreferences):
update=update_fn,
)
# Developer note, this is an experemental option.
# Developer note, this is an experimental option.
use_pie_click_drag: BoolProperty(
name="Pie Menu on Drag",
description=(

View File

@ -1030,7 +1030,7 @@ class WM_OT_url_open_preset(Operator):
"Report a bug in an add-on"),
_url_from_bug_addon),
(('RELEASE_NOTES', "Release Notes",
"Read about whats new in this version of Blender"),
"Read about what's new in this version of Blender"),
_url_from_release_notes),
(('MANUAL', "Manual",
"The reference manual for this version of Blender"),
@ -1430,7 +1430,7 @@ class WM_OT_properties_edit(Operator):
type_items = rna_custom_property_type_items
subtype_items = rna_vector_subtype_items
# Helper method to avoid repetative code to retrieve a single value from sequences and non-sequences.
# Helper method to avoid repetitive code to retrieve a single value from sequences and non-sequences.
@staticmethod
def _convert_new_value_single(old_value, new_type):
if hasattr(old_value, "__len__") and len(old_value) > 0:

View File

@ -261,7 +261,7 @@ class PHYSICS_PT_rigid_body_dynamics(PHYSICS_PT_rigidbody_panel, Panel):
# col = layout.column(align=True)
# col.label(text="Activation:")
# XXX: settings such as activate on collison/etc.
# XXX: settings such as activate on collision/etc.
col = flow.column()
col.prop(rbo, "linear_damping", text="Damping Translation")

View File

@ -64,7 +64,7 @@ from collections import namedtuple
ToolDef = namedtuple(
"ToolDef",
(
# Unique tool name (withing space & mode context).
# Unique tool name (within space & mode context).
"idname",
# The name to display in the interface.
"label",

View File

@ -56,7 +56,7 @@ setup_platform_linker_libs(blender_test)
if(WIN32)
foreach(_lib ${_test_libs})
# Both target_link_libraries and target_link_options are required here
# target_link_libraries will add any dependend libraries, while just setting
# target_link_libraries will add any dependent libraries, while just setting
# the wholearchive flag in target link options will not.
target_link_libraries(blender_test ${_lib})
target_link_options(blender_test PRIVATE /wholearchive:$<TARGET_FILE:${_lib}>)