From 10a54bbd06e3b1843b39b7bc55c24057dcaac41a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 18 Feb 2021 13:26:39 +1100 Subject: [PATCH] Cleanup: spelling, correct doc-string arguments --- intern/cycles/blender/blender_mesh.cpp | 2 +- intern/cycles/util/util_simd.h | 2 +- source/blender/gpu/intern/gpu_framebuffer.cc | 4 ++-- source/blender/makesrna/intern/rna_userdef.c | 2 +- source/blender/python/gpu/gpu_py_buffer.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/intern/cycles/blender/blender_mesh.cpp b/intern/cycles/blender/blender_mesh.cpp index 14bdcd843e9..182aefa82ae 100644 --- a/intern/cycles/blender/blender_mesh.cpp +++ b/intern/cycles/blender/blender_mesh.cpp @@ -350,7 +350,7 @@ static void fill_generic_attribute(BL::Mesh &b_mesh, static void attr_create_generic(Scene *scene, Mesh *mesh, BL::Mesh &b_mesh, bool subdivision) { if (subdivision) { - /* TODO: Handle subdivison correctly. */ + /* TODO: Handle subdivision correctly. */ return; } AttributeSet &attributes = mesh->attributes; diff --git a/intern/cycles/util/util_simd.h b/intern/cycles/util/util_simd.h index d327b7298dc..718ec9266b1 100644 --- a/intern/cycles/util/util_simd.h +++ b/intern/cycles/util/util_simd.h @@ -290,7 +290,7 @@ __forceinline uint64_t bitscan(uint64_t v) # endif /* __KERNEL_64_BIT__ */ #elif (defined(__x86_64__) || defined(__i386__)) && defined(__KERNEL_SSE2__) -/* Instrinsic functions with x86 SSE. */ +/* Intrinsic functions with x86 SSE. */ __forceinline uint32_t __bsf(const uint32_t v) { diff --git a/source/blender/gpu/intern/gpu_framebuffer.cc b/source/blender/gpu/intern/gpu_framebuffer.cc index 0dd7948532c..1e3cf479462 100644 --- a/source/blender/gpu/intern/gpu_framebuffer.cc +++ b/source/blender/gpu/intern/gpu_framebuffer.cc @@ -476,9 +476,9 @@ void GPU_framebuffer_recursive_downsample(GPUFrameBuffer *gpu_fb, /** \} */ /* -------------------------------------------------------------------- */ -/** \name Framebuffer Stack +/** \name Frame-Buffer Stack * - * Keeps track of framebuffer binding operation to restore previously bound frambuffers. + * Keeps track of frame-buffer binding operation to restore previously bound frame-buffers. * \{ */ #define FRAMEBUFFER_STACK_DEPTH 16 diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index e8dd6e77d1f..7f7adc69dd1 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -4866,7 +4866,7 @@ static void rna_def_userdef_view(BlenderRNA *brna) "Translate the names of new data-blocks (objects, materials...)"); RNA_def_property_update(prop, 0, "rna_userdef_update"); - /* Statusbar. */ + /* Status-bar. */ prop = RNA_def_property(srna, "show_statusbar_memory", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "statusbar_flag", STATUSBAR_SHOW_MEMORY); diff --git a/source/blender/python/gpu/gpu_py_buffer.c b/source/blender/python/gpu/gpu_py_buffer.c index c8eaa9cd5c8..5939c822272 100644 --- a/source/blender/python/gpu/gpu_py_buffer.c +++ b/source/blender/python/gpu/gpu_py_buffer.c @@ -649,8 +649,8 @@ size_t bpygpu_Buffer_size(BPyGPUBuffer *buffer) /** * Create a buffer object * - * \param dimensions: An array of ndimensions integers representing the size of each dimension. - * \param initbuffer: When not NULL holds a contiguous buffer + * \param shape: An array of `shape_len` integers representing the size of each dimension. + * \param buffer: When not NULL holds a contiguous buffer * with the correct format from which the buffer will be initialized */ BPyGPUBuffer *BPyGPU_Buffer_CreatePyObject(const int format,