Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2024-02-10 22:35:35 +11:00
parent 2df863287f
commit 3dbbc013de
10 changed files with 14 additions and 15 deletions

View File

@ -70,8 +70,7 @@ class DenoiseParams : public Node {
bool temporally_stable = false;
/* If true, then allow, if supported, OpenImageDenoise to use GPU device.
* If false, then OpenImageDenoise will always use CPU regardless of GPU device
* precense. */
* If false, then OpenImageDenoise will always use CPU regardless of GPU device presence. */
bool use_gpu = true;
DenoiserPrefilter prefilter = DENOISER_PREFILTER_FAST;

View File

@ -233,7 +233,7 @@ def bake_action_iter(
return {}
# Be careful about which properties to actually consider for baking, as
# keeping references to complex Blender datastructures around for too long
# keeping references to complex Blender data-structures around for too long
# can cause crashes. See #117988.
clean_props = {
key: rna_idprop_value_to_python(value)

View File

@ -476,7 +476,7 @@ class Layer : public ::GreasePencilLayer {
float4x4 local_transform() const;
/**
* Get the parent to world marix for this layer.
* Get the parent to world matrix for this layer.
*/
float4x4 parent_to_world(const Object &parent) const;
};

View File

@ -77,7 +77,7 @@ struct BlendFileData {
* of WindowManager and other UI data-blocks across blend-file reading process.
*/
struct BlendFileReadWMSetupData {
/** The existing WM when filereading process is started. */
/** The existing WM when file-reading process is started. */
wmWindowManager *old_wm;
/** The startup file is being read. */

View File

@ -84,7 +84,7 @@ const char *BLT_translate_do_new_dataname(const char *msgctxt, const char *msgid
#define BLT_I18NCONTEXT_PLURAL "Plural"
/* ID-types contexts. */
/* WARNING! Keep it in sync with idtypes in blenkernel/intern/idcode.c */
/* WARNING! Keep it in sync with ID-types in `blenkernel/intern/idtype.cc`. */
#define BLT_I18NCONTEXT_ID_ACTION "Action"
#define BLT_I18NCONTEXT_ID_ARMATURE "Armature"
#define BLT_I18NCONTEXT_ID_BRUSH "Brush"

View File

@ -15,7 +15,7 @@ namespace blender::compositor {
class NodeOperation;
/* Profiling ddata gathered during execution of a compositing node tree. */
/* Profiling data gathered during execution of a compositing node tree. */
class ProfilerData {
public:
/* Per-node accumulated execution time. Includes execution time of all operations the node was

View File

@ -38,14 +38,14 @@
#define SPHERE_PROBE_SH_GROUP_SIZE 512
#define SPHERE_PROBE_SH_SAMPLES_PER_GROUP 64
/**
* Limited by the UBO size limit (16384 bytes / sizeof(SphereProbeData)).
* Limited by the UBO size limit `(16384 bytes / sizeof(SphereProbeData))`.
*/
#define SPHERE_PROBE_MAX 128
/**
* Limited by the performance impact it can cause.
* Limited by the max layer count supported by a hardware (256).
* Limited by the UBO size limit (16384 bytes / sizeof(PlanarProbeData)).
* Limited by the UBO size limit `(16384 bytes / sizeof(PlanarProbeData))`.
*/
#define PLANAR_PROBE_MAX 16

View File

@ -36,7 +36,7 @@ void PlanarProbe::set_view(const draw::View &view, int layer_id)
void PlanarProbeModule::init()
{
/* This triggers the compilation of clipped shader only if we can detect lightprobe planes. */
/* This triggers the compilation of clipped shader only if we can detect light-probe planes. */
if (inst_.is_viewport()) {
/* This check needs to happen upfront before sync, so we use the previous sync result. */
update_probes_ = !inst_.light_probes.planar_map_.is_empty();

View File

@ -74,7 +74,7 @@ void SphereProbeModule::begin_sync()
bool SphereProbeModule::ensure_atlas()
{
/* Make sure the atlas is always initialized even if there is nothing to render to it to fullfil
/* Make sure the atlas is always initialized even if there is nothing to render to it to fulfill
* the resource bindings. */
eGPUTextureUsage usage = GPU_TEXTURE_USAGE_SHADER_WRITE | GPU_TEXTURE_USAGE_SHADER_READ;
@ -110,7 +110,7 @@ void SphereProbeModule::end_sync()
if (probe.do_render) {
/* Tag the next redraw to warm up the probe pipeline.
* Keep doing this until there is no update.
* This avoids stuttering when moving a lightprobe. */
* This avoids stuttering when moving a light-probe. */
update_probes_next_sample_ = true;
}
}
@ -127,7 +127,7 @@ void SphereProbeModule::ensure_cubemap_render_target(int resolution)
{
GPU_texture_mipmap_mode(cubemap_tx_, false, true);
}
/* TODO(fclem): dealocate it. */
/* TODO(fclem): deallocate it. */
}
SphereProbeModule::UpdateInfo SphereProbeModule::update_info_from_probe(const SphereProbe &probe)

View File

@ -2161,7 +2161,7 @@ static void unused_message_gen(std::string &message,
static int unused_message_popup_width_compute(bContext *C)
{
/* Computation of unused data amounts, with all options ON.
* Used to estimate the maximum required witdh for the dialog. */
* Used to estimate the maximum required width for the dialog. */
Main *bmain = CTX_data_main(C);
LibQueryUnusedIDsData data = {true, true, true, {}, {}, {}};
BKE_lib_query_unused_ids_amounts(bmain, data);
@ -2326,7 +2326,7 @@ void OUTLINER_OT_orphans_purge(wmOperatorType *ot)
/* NOTE: No #OPTYPE_REGISTER, since this operator should not be 'adjustable'. */
ot->flag = OPTYPE_UNDO;
/* Actual user-visibla settings. */
/* Actual user-visible settings. */
RNA_def_boolean(ot->srna,
"do_local_ids",
true,