Cleanup: duplicate words in comments
This commit is contained in:
parent
02c8ce449e
commit
a0a7db9f70
|
@ -28,7 +28,7 @@ struct Scene;
|
|||
int BKE_mesh_runtime_looptri_len(const struct Mesh *mesh);
|
||||
|
||||
/**
|
||||
* Return mesh triangulation data, calculated lazily when necessary necessary.
|
||||
* Return mesh triangulation data, calculated lazily when necessary.
|
||||
* See #MLoopTri for further description of mesh triangulation.
|
||||
*
|
||||
* \note Prefer #Mesh::looptris() in C++ code.
|
||||
|
|
|
@ -142,7 +142,7 @@ void BKE_object_handle_data_update(Depsgraph *depsgraph, Scene *scene, Object *o
|
|||
CustomData_MeshMasks_update(&cddata_masks, &CD_MASK_BAREMESH);
|
||||
/* Custom attributes should not be removed automatically. They might be used by the render
|
||||
* engine or scripts. They can still be removed explicitly using geometry nodes.
|
||||
* Crease can be be used in generic situations with geometry nodes as well. */
|
||||
* Crease can be used in generic situations with geometry nodes as well. */
|
||||
cddata_masks.vmask |= CD_MASK_PROP_ALL | CD_MASK_CREASE;
|
||||
cddata_masks.emask |= CD_MASK_PROP_ALL | CD_MASK_CREASE;
|
||||
cddata_masks.fmask |= CD_MASK_PROP_ALL;
|
||||
|
|
|
@ -152,7 +152,7 @@ template<typename T> class Span {
|
|||
|
||||
/**
|
||||
* Returns a contiguous part of the array. This invokes undefined behavior when the start or size
|
||||
* is negative. Clamps the size of the new new span so it fits in the current one.
|
||||
* is negative. Clamps the size of the new span so it fits in the current one.
|
||||
*/
|
||||
constexpr Span slice_safe(const int64_t start, const int64_t size) const
|
||||
{
|
||||
|
@ -608,7 +608,7 @@ template<typename T> class MutableSpan {
|
|||
|
||||
/**
|
||||
* Returns a contiguous part of the array. This invokes undefined behavior when the start or size
|
||||
* is negative. Clamps the size of the new new span so it fits in the current one.
|
||||
* is negative. Clamps the size of the new span so it fits in the current one.
|
||||
*/
|
||||
constexpr MutableSpan slice_safe(const int64_t start, const int64_t size) const
|
||||
{
|
||||
|
|
|
@ -162,7 +162,7 @@ typedef struct DEGObjectIterSettings {
|
|||
} DEGObjectIterSettings;
|
||||
|
||||
/**
|
||||
* Flags to to get objects for draw manager and final render.
|
||||
* Flags to get objects for draw manager and final render.
|
||||
*/
|
||||
#define DEG_OBJECT_ITER_FOR_RENDER_ENGINE_FLAGS \
|
||||
DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY | DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET | \
|
||||
|
|
|
@ -139,9 +139,9 @@ struct OperationKey {
|
|||
int name_tag = -1;
|
||||
};
|
||||
|
||||
/* Similar to the the OperationKey but does not contain external references, which makes it
|
||||
/* Similar to the #OperationKey but does not contain external references, which makes it
|
||||
* suitable to identify operations even after the original database or graph was destroyed.
|
||||
* The downside of this key over the OperationKey is that it performs string allocation upon
|
||||
* The downside of this key over the #OperationKey is that it performs string allocation upon
|
||||
* the key construction. */
|
||||
struct PersistentOperationKey : public OperationKey {
|
||||
/* Create the key which identifies the given operation node. */
|
||||
|
@ -155,7 +155,7 @@ struct PersistentOperationKey : public OperationKey {
|
|||
component_name_storage_ = component_node->name;
|
||||
name_storage_ = operation_node->name;
|
||||
|
||||
/* Assign fields used by the OperationKey API. */
|
||||
/* Assign fields used by the #OperationKey API. */
|
||||
id = id_node->id_orig;
|
||||
component_type = component_node->type;
|
||||
component_name = component_name_storage_.c_str();
|
||||
|
|
|
@ -4321,7 +4321,7 @@ static void knifetool_finish_single_post(KnifeTool_OpData *UNUSED(kcd), Object *
|
|||
static void knifetool_finish_ex(KnifeTool_OpData *kcd)
|
||||
{
|
||||
/* Separate pre/post passes are needed because `em->looptris` recalculation from the 'post' pass
|
||||
* causes causes triangle indices in #KnifeTool_OpData.bvh to get out of sync.
|
||||
* causes triangle indices in #KnifeTool_OpData.bvh to get out of sync.
|
||||
* So perform all the cuts before doing any mesh recalculation, see: T101721. */
|
||||
for (uint ob_index = 0; ob_index < kcd->objects_len; ob_index++) {
|
||||
Object *ob = kcd->objects[ob_index];
|
||||
|
|
Loading…
Reference in New Issue