Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2022-12-17 13:14:01 +11:00
parent 067fe443d8
commit 6797de4e10
Notes: blender-bot 2023-02-14 07:25:46 +01:00
Referenced by issue #103304, Regression: Two Subdivision surface node is acting weird
Referenced by issue #103294, Regression: Render crash if add another modifier after geometry node on object on cycles render
8 changed files with 14 additions and 14 deletions

View File

@ -26,8 +26,7 @@ class HdCyclesVolumeLoader : public VDBImageLoader {
HdCyclesVolumeLoader(const std::string &filePath, const std::string &gridName)
: VDBImageLoader(gridName)
{
/* Disably delay loading and file copying, this has poor performance
* on network drivers. */
/* Disable delay loading and file copying, this has poor performance on network drivers. */
const bool delay_load = false;
openvdb::io::File file(filePath);
file.setCopyMaxBytes(0);

View File

@ -18,7 +18,7 @@ CCL_NAMESPACE_BEGIN
/* In order to perform anti-aliasing during baking, we jitter the input barycentric coordinates
* (which are for the center of the texel) within the texel.
* However, the baking code corrently doesn't support going to neighboring triangle, so if the
* However, the baking code currently doesn't support going to neighboring triangle, so if the
* jittered location falls outside of the input triangle, we need to bring it back in somehow.
* Clamping is a bad choice here since it can produce noticeable artifacts at triangle edges,
* but properly uniformly sampling the intersection of triangle and texel would be very

View File

@ -1063,7 +1063,7 @@ GHOST_EventCursor *GHOST_SystemWin32::processCursorEvent(GHOST_WindowWin32 *wind
if (window->getCursorGrabModeIsWarp()) {
static uint64_t last_warp_time = 0;
{
/* WORKAROUND: Check the mouse event timestamp so we can ignore mousemove events that were
/* WORKAROUND: Check the mouse event timestamp so we can ignore mouse-move events that were
* already in the queue before we changed the cursor position. */
MOUSEMOVEPOINT mp = {x_screen, y_screen};
::GetMouseMovePointsEx(sizeof(MOUSEMOVEPOINT), &mp, &mp, 1, GMMP_USE_DISPLAY_POINTS);
@ -1117,7 +1117,7 @@ GHOST_EventCursor *GHOST_SystemWin32::processCursorEvent(GHOST_WindowWin32 *wind
window->getCursorGrabAccum(x_accum, y_accum);
if (x_new != x_screen || y_new != y_screen) {
/* WORKAROUND: Store the current time so that we ignore outdated mousemove events. */
/* WORKAROUND: Store the current time so that we ignore outdated mouse-move events. */
last_warp_time = ::GetTickCount64();
/* For more control over which timestamp to store in the event, we use `SendInput` instead of

View File

@ -890,8 +890,8 @@ static void key_evaluate_relative(const int start,
end = tot;
}
/* in case of beztriple */
elemstr[0] = 1; /* nr of ipofloats */
/* In case of Bezier-triple. */
elemstr[0] = 1; /* Number of IPO-floats. */
elemstr[1] = IPO_BEZTRIPLE;
elemstr[2] = 0;
@ -1132,8 +1132,8 @@ static void do_key(const int start,
}
}
/* in case of beztriple */
elemstr[0] = 1; /* nr of ipofloats */
/* In case of bezier-triples. */
elemstr[0] = 1; /* Number of IPO-floats. */
elemstr[1] = IPO_BEZTRIPLE;
elemstr[2] = 0;

View File

@ -31,7 +31,7 @@ GPU_SHADER_CREATE_INFO(basic_curves)
.vertex_source("basic_depth_curves_vert.glsl")
.additional_info("draw_hair");
/* Geometry-shader alterantive paths. */
/* Geometry-shader alternative paths. */
GPU_SHADER_CREATE_INFO(basic_mesh_conservative_no_geom)
.vertex_in(0, Type::VEC3, "pos")
.vertex_source("basic_depth_vert_conservative_no_geom.glsl")

View File

@ -9,7 +9,7 @@ typedef struct CommonUniformBlock CommonUniformBlock;
#endif
#ifdef GPU_SHADER
/* Catch for non-create info cass. */
/* Catch for non-create info case. */
# ifndef BLI_STATIC_ASSERT_ALIGN
# define BLI_STATIC_ASSERT_ALIGN(type, alignment)
# endif

View File

@ -324,7 +324,8 @@ static void init_value_from_file_indexer_entries(DictionaryValue &result,
for (LinkNode *ln = indexer_entries.entries; ln; ln = ln->next) {
const FileIndexerEntry *indexer_entry = static_cast<const FileIndexerEntry *>(ln->link);
/* We also get non asset types (brushes, workspaces), when browsing using the asset browser. */
/* We also get non asset types (brushes, work-spaces), when browsing using the asset browser.
*/
if (indexer_entry->datablock_info.asset_data == nullptr) {
continue;
}

View File

@ -582,8 +582,8 @@ void ED_mesh_report_mirror_ex(struct wmOperator *op, int totmirr, int totfail, c
struct Mesh *ED_mesh_context(struct bContext *C);
/**
* Split all edges that would appear sharp based onface and edge sharpness tags and the auto smooth
* angle.
* Split all edges that would appear sharp based on face and edge sharpness tags and the
* auto smooth angle.
*/
void ED_mesh_split_faces(struct Mesh *mesh);