Cleanup: spelling in comments
This commit is contained in:
@@ -49,7 +49,7 @@ ccl_device int shadow_linking_pick_mesh_intersection(KernelGlobals kg,
|
||||
}
|
||||
|
||||
/* Only record primitives that potentially have emission.
|
||||
* TODO: optimize with a dedicated ray visiblity flag, which could then also be
|
||||
* TODO: optimize with a dedicated ray visibility flag, which could then also be
|
||||
* used once lights are in the BVH as geometry? */
|
||||
const int shader = intersection_get_shader(kg, ¤t_isect);
|
||||
const int shader_flags = kernel_data_fetch(shaders, shader).flags;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace blender::index_mask {
|
||||
* - The second most-significant bit is not used for indices so that #max_segment_size itself can
|
||||
* be stored in the #int16_t.
|
||||
* - The maximum number of indices in a segment is 16384, which is generally enough to make the
|
||||
* overhead per segment negilible when processing large index masks.
|
||||
* overhead per segment negligible when processing large index masks.
|
||||
* - A power of two is used for #max_segment_size, because that allows for faster construction of
|
||||
* index masks for index ranges.
|
||||
*/
|
||||
@@ -335,7 +335,7 @@ class IndexMask : private IndexMaskData {
|
||||
*/
|
||||
void to_bits(MutableBitSpan r_bits) const;
|
||||
/**
|
||||
* Set the bools at indies inthe mask to true and all others to false.
|
||||
* Set the bools at indies in the mask to true and all others to false.
|
||||
*/
|
||||
void to_bools(MutableSpan<bool> r_bools) const;
|
||||
/**
|
||||
|
||||
@@ -3984,7 +3984,7 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath)
|
||||
|
||||
/* In case the current scene is a liboverride, while the ID pointer itself remains valid,
|
||||
* above update of liboverrides will have completely invalidated its old content, so the
|
||||
* current viewlayer needs to be searched for again. */
|
||||
* current view-layer needs to be searched for again. */
|
||||
if (bfd->cur_view_layer != nullptr) {
|
||||
bfd->cur_view_layer = BKE_view_layer_find(bfd->curscene, cur_view_layer_name.c_str());
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ class EmitterData {
|
||||
static constexpr int MAX_COLLECTION_ID = 63;
|
||||
|
||||
/* Mask of a light linking collection this emitter uses in its configuration.
|
||||
* A single bit is set in this bitfield which corresponds to an identifier of a light linking
|
||||
* A single bit is set in this bit-field which corresponds to an identifier of a light linking
|
||||
* collection in the scene. */
|
||||
uint64_t collection_mask = 0;
|
||||
|
||||
@@ -121,7 +121,7 @@ class EmitterDataMap {
|
||||
}
|
||||
|
||||
private:
|
||||
/* Get linked collection depending on whether this is emitter information os for light or shadow
|
||||
/* Get linked collection depending on whether this is emitter information for light or shadow
|
||||
* linking. */
|
||||
/* TODO(sergey): Check whether template specialization is preferred here. */
|
||||
inline const Collection *get_collection(const Object &emitter) const
|
||||
|
||||
@@ -300,7 +300,7 @@ GPUShader *EEVEE_shaders_probe_filter_visibility_sh_get(void)
|
||||
{
|
||||
if (e_data.probe_filter_visibility_sh == nullptr) {
|
||||
e_data.probe_filter_visibility_sh = DRW_shader_create_from_info_name(
|
||||
"eevee_legacy_probe_filter_visiblity");
|
||||
"eevee_legacy_probe_filter_visibility");
|
||||
}
|
||||
return e_data.probe_filter_visibility_sh;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ GPU_SHADER_CREATE_INFO(eevee_legacy_probe_filter_diffuse_hl2)
|
||||
.auto_resource_location(true);
|
||||
|
||||
/* EEVEE_shaders_probe_filter_visibility_sh_get */
|
||||
GPU_SHADER_CREATE_INFO(eevee_legacy_probe_filter_visiblity)
|
||||
GPU_SHADER_CREATE_INFO(eevee_legacy_probe_filter_visibility)
|
||||
.define("IRRADIANCE_HL2")
|
||||
.additional_info("eevee_legacy_irradiance_lib")
|
||||
.additional_info("draw_fullscreen")
|
||||
|
||||
@@ -169,7 +169,7 @@ static void SCULPT_dynamic_topology_disable_ex(
|
||||
CustomData_free_layer_named(&me->pdata, ".sculpt_face_set", me->totpoly);
|
||||
me->face_sets_color_default = 1;
|
||||
|
||||
/* Sync the visibility to vertices manually as the pmap is still not initialized. */
|
||||
/* Sync the visibility to vertices manually as the `pmap` is still not initialized. */
|
||||
bool *hide_vert = (bool *)CustomData_get_layer_named_for_write(
|
||||
&me->vdata, CD_PROP_BOOL, ".hide_vert", me->totvert);
|
||||
if (hide_vert != nullptr) {
|
||||
|
||||
@@ -289,7 +289,7 @@ typedef struct LightLinkingRuntime {
|
||||
typedef struct LightLinking {
|
||||
/* Collections which contains objects (possibly via nested collection indirection) which defines
|
||||
* the light linking relation: such as whether objects are included or excluded from being lit by
|
||||
* this emitter (receiver_collection), oe whether they block light from this emitter
|
||||
* this emitter (receiver_collection), or whether they block light from this emitter
|
||||
* (blocker_collection).
|
||||
*
|
||||
* If the collection is a null pointer then all objects from the current scene are receiving
|
||||
|
||||
@@ -5908,7 +5908,7 @@ static void rna_def_scene_image_format_data(BlenderRNA *brna)
|
||||
# endif
|
||||
|
||||
# ifdef WITH_OPENJPEG
|
||||
/* Jpeg 2000 */
|
||||
/* JPEG 2000 */
|
||||
prop = RNA_def_property(srna, "use_jpeg2k_ycc", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "jp2_flag", R_IMF_JP2_FLAG_YCC);
|
||||
RNA_def_property_ui_text(
|
||||
|
||||
Reference in New Issue
Block a user