Cleanup: fix various typos
Found via codespell -q 3 -S ./intern,./extern -L ans,ba,bording,datas,eiter,fiter,hist,inout,lod,ot,parm,parms,pixelx,pres,te Contributed by luzpaz. Differential Revision: https://developer.blender.org/D15155
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
"""
|
||||
Utilities relating to text mode console interations.
|
||||
Utilities relating to text mode console interactions.
|
||||
"""
|
||||
|
||||
@@ -119,7 +119,7 @@ bool BKE_collection_object_add(struct Main *bmain,
|
||||
/**
|
||||
* Add object to given collection, similar to #BKE_collection_object_add.
|
||||
*
|
||||
* However, it additionnally ensures that the selected collection is also part of the given
|
||||
* However, it additionally ensures that the selected collection is also part of the given
|
||||
* `view_layer`, if non-NULL. Otherwise, the object is not added to any collection.
|
||||
*/
|
||||
bool BKE_collection_viewlayer_object_add(struct Main *bmain,
|
||||
|
||||
@@ -126,7 +126,7 @@ BLI_STATIC_ASSERT_ALIGN(VelocityGeometryIndex, 16)
|
||||
* \{ */
|
||||
|
||||
enum eClosureBits : uint32_t {
|
||||
/** NOTE: Theses are used as stencil bits. So we are limited to 8bits. */
|
||||
/** NOTE: These are used as stencil bits. So we are limited to 8bits. */
|
||||
CLOSURE_DIFFUSE = (1u << 0u),
|
||||
CLOSURE_SSS = (1u << 1u),
|
||||
CLOSURE_REFLECTION = (1u << 2u),
|
||||
|
||||
@@ -287,7 +287,7 @@ vec3 attr_load_uv(vec3 attr)
|
||||
/** \name Volume Attribute post
|
||||
*
|
||||
* TODO(@fclem): These implementation details should concern the DRWManager and not be a fix on
|
||||
* the engine side. But as of now, the engines are reponsible for loading the attributes.
|
||||
* the engine side. But as of now, the engines are responsible for loading the attributes.
|
||||
*
|
||||
* \{ */
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ bool closure_select(float weight, inout float total_weight, inout float r)
|
||||
float x = weight / total_weight;
|
||||
bool chosen = (r < x);
|
||||
/* Assuming that if r is in the interval [0,x] or [x,1], it's still uniformly distributed within
|
||||
* that interval, so you remaping to [0,1] again to explore this space of probability. */
|
||||
* that interval, so you remapping to [0,1] again to explore this space of probability. */
|
||||
r = (chosen) ? (r / x) : ((r - x) / (1.0 - x));
|
||||
return chosen;
|
||||
}
|
||||
@@ -333,7 +333,7 @@ vec3 coordinate_screen(vec3 P)
|
||||
window.xy = vec2(0.5);
|
||||
}
|
||||
else {
|
||||
/* TODO(fclem): Actual camera tranform. */
|
||||
/* TODO(fclem): Actual camera transform. */
|
||||
window.xy = project_point(ViewProjectionMatrix, P).xy * 0.5 + 0.5;
|
||||
window.xy = window.xy * CameraTexCoFactors.xy + CameraTexCoFactors.zw;
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ finally:
|
||||
bool python_script_error_jump(
|
||||
const char *filepath, int *r_lineno, int *r_offset, int *r_lineno_end, int *r_offset_end)
|
||||
{
|
||||
/* WARNING(@campbellbarton): The normalized exception is restored (loosing line number info).
|
||||
/* WARNING(@campbellbarton): The normalized exception is restored (losing line number info).
|
||||
* Ideally this would leave the exception state as it found it, but that needs to be done
|
||||
* carefully with regards to reference counting, see: T97731. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user