Cleanup: spelling

This commit is contained in:
2019-11-21 23:11:48 +11:00
parent 7c18fcbe03
commit 1fbb86654a
3 changed files with 12 additions and 11 deletions

View File

@@ -1739,7 +1739,7 @@ static void calculate_profile(BevelParams *bp, BoundVert *bndv, bool reversed, b
}
if (bp->vmesh_method == BEVEL_VMESH_CUTOFF && map_ok) {
/* Calculate the "height" of the profile by putting the (0,0) and (1,1) corners of the
* un-transformed profile throught the 2D->3D map and calculating the distance between them */
* un-transformed profile thought the 2D->3D map and calculating the distance between them. */
zero_v3(p);
mul_v3_m4v3(bottom_corner, map, p);
p[0] = 1.0f;
@@ -3024,7 +3024,7 @@ static bool adjust_the_cycle_or_chain_fast(BoundVert *vstart, int np, bool iscyc
/** Helper function to return the next Beveled EdgeHalf along a path.
* \param toward_bv Whether the direction to travel points toward or away from the BevVert
* connected to the current EdgeHalf
* \param r_bv The BevVert conencted to the EdgeHalf-- updated if we're travelling to the other
* \param r_bv The BevVert connected to the EdgeHalf-- updated if we're traveling to the other
* EdgeHalf of an original edge
* \note This only returns the most parallel edge if it's the most parallel by
* at least 10 degrees. This is a somewhat arbitrary choice, but it makes sure that consistent

View File

@@ -34,8 +34,9 @@
#define PROF_N_TABLE(n_pts) min_ii(PROF_TABLE_MAX, (((n_pts - 1)) * PROF_RESOL) + 1)
/** Each control point that makes up the profile.
* \note The flags use the same enum as Bezier curves, but they aren't garanteed
* to have identical functionality, and all types aren't implemented. */
* \note The flags use the same enum as Bezier curves, but they aren't guaranteed
* to have identical functionality, and all types aren't implemented.
*/
typedef struct CurveProfilePoint {
/** Location of the point, keep together. */
float x, y;
@@ -50,7 +51,7 @@ enum {
PROF_SELECT = (1 << 0),
};
/** Defines a profile */
/** Defines a profile. */
typedef struct CurveProfile {
/** Number of user-added points that define the profile. */
short path_len;
@@ -85,7 +86,7 @@ typedef enum eCurveProfilePresets {
PROF_PRESET_SUPPORTS = 1, /* Support loops for a regular curved profile. */
PROF_PRESET_CORNICE = 2, /* Moulding type example. */
PROF_PRESET_CROWN = 3, /* Second moulding example. */
PROF_PRESET_STEPS = 4, /* Dynamic number of steps defined by totsegments. */
PROF_PRESET_STEPS = 4, /* Dynamic number of steps defined by segments_len. */
} eCurveProfilePresets;
#endif

View File

@@ -83,13 +83,13 @@ typedef struct SpaceLink {
enum {
/**
* The space is not a regular one opened through the editor menu (for example) but spawned by an
* operator to fulfill some task and then disappear again. Can typically be cancelled using Esc,
* but that is handled on the editor level. */
* operator to fulfill some task and then disappear again.
* Can typically be cancelled using Escape, but that is handled on the editor level. */
SPACE_FLAG_TYPE_TEMPORARY = (1 << 0),
/**
* Used to mark a space as active but "overlapped" by temporary fullscreen spaces. Without this
* we wouldn't be able to restore the correct active space after closing temp fullscreens
* reliably if the same space type is opened twice in a fullscreen stack (see T19296). We don't
* Used to mark a space as active but "overlapped" by temporary full-screen spaces. Without this
* we wouldn't be able to restore the correct active space after closing temp full-screens
* reliably if the same space type is opened twice in a full-screen stack (see T19296). We don't
* actually open the same space twice, we have to pretend it is by managing area order carefully.
*/
SPACE_FLAG_TYPE_WAS_ACTIVE = (1 << 1),