Cleanup: format, spelling, struct member comment

This commit is contained in:
2023-03-20 11:12:34 +11:00
parent bb593e5416
commit 7cda559d7c
9 changed files with 27 additions and 26 deletions

View File

@@ -1072,7 +1072,7 @@ void RenderScheduler::update_start_resolution_divider()
} }
/* Calculate the maximum resolution divider possible while keeping the long axis of the viewport /* Calculate the maximum resolution divider possible while keeping the long axis of the viewport
* above our prefered minimum axis size (128) */ * above our preferred minimum axis size (128). */
const int long_viewport_axis = max(buffer_params_.width, buffer_params_.height); const int long_viewport_axis = max(buffer_params_.width, buffer_params_.height);
const int max_res_divider_for_desired_size = long_viewport_axis / 128; const int max_res_divider_for_desired_size = long_viewport_axis / 128;

View File

@@ -29,7 +29,7 @@
* It's mostly used for modifiers, and has the advantages of not taking much * It's mostly used for modifiers, and has the advantages of not taking much
* resources. * resources.
* *
* BMesh is a full-on brep, used for editmode, some modifiers, etc. It's much * BMesh is a full-on BREP, used for edit-mode, some modifiers, etc. It's much
* more capable (if memory-intensive) then CDDM. * more capable (if memory-intensive) then CDDM.
* *
* DerivedMesh is somewhat hackish. Many places assumes that a DerivedMesh is * DerivedMesh is somewhat hackish. Many places assumes that a DerivedMesh is

View File

@@ -280,7 +280,7 @@ static void eevee_draw_scene(void *vedata)
SET_FLAG_FROM_TEST(clear_bits, (stl->effects->enabled_effects & EFFECT_SSS), GPU_STENCIL_BIT); SET_FLAG_FROM_TEST(clear_bits, (stl->effects->enabled_effects & EFFECT_SSS), GPU_STENCIL_BIT);
GPU_framebuffer_clear(fbl->main_fb, clear_bits, clear_col, clear_depth, clear_stencil); GPU_framebuffer_clear(fbl->main_fb, clear_bits, clear_col, clear_depth, clear_stencil);
/* Depth prepass */ /* Depth pre-pass. */
DRW_stats_group_start("Prepass"); DRW_stats_group_start("Prepass");
DRW_draw_pass(psl->depth_ps); DRW_draw_pass(psl->depth_ps);
DRW_stats_group_end(); DRW_stats_group_end();

View File

@@ -18,7 +18,7 @@ namespace blender::eevee {
class Instance; class Instance;
/** /**
* Fullscreen textures containing geometric and surface data. * Full-screen textures containing geometric and surface data.
* Used by deferred shading passes. Only one gbuffer is allocated per view * Used by deferred shading passes. Only one gbuffer is allocated per view
* and is reused for each deferred layer. This is why there can only be temporary * and is reused for each deferred layer. This is why there can only be temporary
* texture inside it. * texture inside it.

View File

@@ -60,7 +60,7 @@ set(LIB
blender_add_lib(bf_ply "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") blender_add_lib(bf_ply "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
if (WITH_GTESTS) if(WITH_GTESTS)
set(TEST_SRC set(TEST_SRC
tests/io_ply_importer_test.cc tests/io_ply_importer_test.cc
tests/io_ply_exporter_test.cc tests/io_ply_exporter_test.cc

View File

@@ -790,7 +790,8 @@ void USDMaterialReader::convert_usd_primvar_reader_float2(
/* First check if the shader's "varname" input is connected to another source, /* First check if the shader's "varname" input is connected to another source,
* and use that instead if so. */ * and use that instead if so. */
if (varname_input) { if (varname_input) {
for (const pxr::UsdShadeConnectionSourceInfo& source_info : varname_input.GetConnectedSources()) { for (const pxr::UsdShadeConnectionSourceInfo &source_info :
varname_input.GetConnectedSources()) {
pxr::UsdShadeShader shader = pxr::UsdShadeShader(source_info.source.GetPrim()); pxr::UsdShadeShader shader = pxr::UsdShadeShader(source_info.source.GetPrim());
pxr::UsdShadeInput secondary_varname_input = shader.GetInput(source_info.sourceName); pxr::UsdShadeInput secondary_varname_input = shader.GetInput(source_info.sourceName);
if (secondary_varname_input) { if (secondary_varname_input) {

View File

@@ -697,7 +697,7 @@ ModifierTypeInfo modifierType_Ocean = {
/*icon*/ ICON_MOD_OCEAN, /*icon*/ ICON_MOD_OCEAN,
/*copyData*/ copyData, /*copyData*/ copyData,
/*deformMatrices_DM*/ nullptr, /*deformMatrices*/ nullptr,
/*deformMatrices*/ nullptr, /*deformMatrices*/ nullptr,
/*deformVertsEM*/ nullptr, /*deformVertsEM*/ nullptr,

View File

@@ -380,7 +380,7 @@ void BPy_BM_init_types_select(void)
BPy_BMEditSelSeq_Type.tp_iter = (getiterfunc)bpy_bmeditselseq_iter; BPy_BMEditSelSeq_Type.tp_iter = (getiterfunc)bpy_bmeditselseq_iter;
/* only 1 iteratir so far */ /* Only 1 iterator so far. */
BPy_BMEditSelIter_Type.tp_iternext = (iternextfunc)bpy_bmeditseliter_next; BPy_BMEditSelIter_Type.tp_iternext = (iternextfunc)bpy_bmeditseliter_next;
BPy_BMEditSelSeq_Type.tp_dealloc = NULL; //(destructor)bpy_bmeditselseq_dealloc; BPy_BMEditSelSeq_Type.tp_dealloc = NULL; //(destructor)bpy_bmeditselseq_dealloc;