forked from bartvdbraak/blender
Code Cleanup: spelling
This commit is contained in:
parent
477a84a738
commit
63ccb26303
@ -614,11 +614,11 @@ void ShaderGraph::refine_bump_nodes()
|
|||||||
foreach(NodePair& pair, nodes_dy)
|
foreach(NodePair& pair, nodes_dy)
|
||||||
add(pair.second);
|
add(pair.second);
|
||||||
|
|
||||||
/* connect what is conected is bump to samplecenter input*/
|
/* connect what is connected is bump to samplecenter input*/
|
||||||
connect(out , node->input("SampleCenter"));
|
connect(out , node->input("SampleCenter"));
|
||||||
|
|
||||||
/* bump input is just for connectivity purpose for the graph input,
|
/* bump input is just for connectivity purpose for the graph input,
|
||||||
* we reconected this input to samplecenter, so lets disconnect it
|
* we re-connected this input to samplecenter, so lets disconnect it
|
||||||
* from bump input */
|
* from bump input */
|
||||||
disconnect(bump_input);
|
disconnect(bump_input);
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ typedef struct DagNodeQueue {
|
|||||||
struct DagNodeQueue *freenodes;
|
struct DagNodeQueue *freenodes;
|
||||||
} DagNodeQueue;
|
} DagNodeQueue;
|
||||||
|
|
||||||
// forest as we may have more than one DAG unnconected
|
/* forest as we may have more than one DAG unconnected */
|
||||||
typedef struct DagForest {
|
typedef struct DagForest {
|
||||||
ListBase DagNode;
|
ListBase DagNode;
|
||||||
struct GHash *nodeHash;
|
struct GHash *nodeHash;
|
||||||
|
@ -2229,7 +2229,7 @@ static void dag_id_flush_update(Main *bmain, Scene *sce, ID *id)
|
|||||||
BKE_ptcache_object_reset(sce, ob, PTCACHE_RESET_DEPSGRAPH);
|
BKE_ptcache_object_reset(sce, ob, PTCACHE_RESET_DEPSGRAPH);
|
||||||
|
|
||||||
/* So if someone tagged object recalc directly,
|
/* So if someone tagged object recalc directly,
|
||||||
* id_tag_update biffield stays relevant
|
* id_tag_update bit-field stays relevant
|
||||||
*/
|
*/
|
||||||
if (ob->recalc & OB_RECALC_ALL) {
|
if (ob->recalc & OB_RECALC_ALL) {
|
||||||
DAG_id_type_tag(bmain, GS(id->name));
|
DAG_id_type_tag(bmain, GS(id->name));
|
||||||
|
@ -184,7 +184,7 @@ static VFontData *vfont_get_data(Main *bmain, VFont *vfont)
|
|||||||
printf("Font file doesn't exist: %s\n", vfont->name);
|
printf("Font file doesn't exist: %s\n", vfont->name);
|
||||||
|
|
||||||
/* DON'T DO THIS
|
/* DON'T DO THIS
|
||||||
* missing file shouldn't modifty path! - campbell */
|
* missing file shouldn't modify path! - campbell */
|
||||||
#if 0
|
#if 0
|
||||||
strcpy(vfont->name, FO_BUILTIN_NAME);
|
strcpy(vfont->name, FO_BUILTIN_NAME);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1197,7 +1197,7 @@ void BKE_mask_get_handle_point_adjacent(MaskSpline *spline, MaskSplinePoint *poi
|
|||||||
*r_point_next = mask_spline_point_next(spline, points_array, point);
|
*r_point_next = mask_spline_point_next(spline, points_array, point);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* calculates the tanget of a point by its previous and next
|
/* calculates the tangent of a point by its previous and next
|
||||||
* (ignoring handles - as if its a poly line) */
|
* (ignoring handles - as if its a poly line) */
|
||||||
void BKE_mask_calc_tangent_polyline(MaskSpline *spline, MaskSplinePoint *point, float t[2])
|
void BKE_mask_calc_tangent_polyline(MaskSpline *spline, MaskSplinePoint *point, float t[2])
|
||||||
{
|
{
|
||||||
|
@ -450,7 +450,7 @@ bool BKE_mesh_validate_arrays(Mesh *mesh,
|
|||||||
# undef CHECK_FACE_EDGE
|
# undef CHECK_FACE_EDGE
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Checking loops and polys is a bit tricky, as they are quite intricated...
|
/* Checking loops and polys is a bit tricky, as they are quite intricate...
|
||||||
*
|
*
|
||||||
* Polys must have:
|
* Polys must have:
|
||||||
* - a valid loopstart value.
|
* - a valid loopstart value.
|
||||||
|
@ -1271,7 +1271,7 @@ static void scene_update_object_func(TaskPool *pool, void *taskdata, int threadi
|
|||||||
|
|
||||||
/* We only update object itself here, dupli-group will be updated
|
/* We only update object itself here, dupli-group will be updated
|
||||||
* separately from main thread because of we've got no idea about
|
* separately from main thread because of we've got no idea about
|
||||||
* dependnecies inside the group.
|
* dependencies inside the group.
|
||||||
*/
|
*/
|
||||||
BKE_object_handle_update_ex(eval_ctx, scene_parent, object, scene->rigidbody_world);
|
BKE_object_handle_update_ex(eval_ctx, scene_parent, object, scene->rigidbody_world);
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ static void shrinkwrap_calc_nearest_vertex(ShrinkwrapCalcData *calc)
|
|||||||
*
|
*
|
||||||
* If we already had an hit before.. we assume this vertex is going to have a close hit to that other vertex
|
* If we already had an hit before.. we assume this vertex is going to have a close hit to that other vertex
|
||||||
* so we can initiate the "nearest.dist" with the expected value to that last hit.
|
* so we can initiate the "nearest.dist" with the expected value to that last hit.
|
||||||
* This will lead in prunning of the search tree. */
|
* This will lead in pruning of the search tree. */
|
||||||
if (nearest.index != -1)
|
if (nearest.index != -1)
|
||||||
nearest.dist = len_squared_v3v3(tmp_co, nearest.co);
|
nearest.dist = len_squared_v3v3(tmp_co, nearest.co);
|
||||||
else
|
else
|
||||||
@ -467,7 +467,7 @@ static void shrinkwrap_calc_nearest_surface_point(ShrinkwrapCalcData *calc)
|
|||||||
*
|
*
|
||||||
* If we already had an hit before.. we assume this vertex is going to have a close hit to that other vertex
|
* If we already had an hit before.. we assume this vertex is going to have a close hit to that other vertex
|
||||||
* so we can initiate the "nearest.dist" with the expected value to that last hit.
|
* so we can initiate the "nearest.dist" with the expected value to that last hit.
|
||||||
* This will lead in prunning of the search tree. */
|
* This will lead in pruning of the search tree. */
|
||||||
if (nearest.index != -1)
|
if (nearest.index != -1)
|
||||||
nearest.dist = len_squared_v3v3(tmp_co, nearest.co);
|
nearest.dist = len_squared_v3v3(tmp_co, nearest.co);
|
||||||
else
|
else
|
||||||
|
@ -427,8 +427,8 @@ void BKE_tracking_stabilization_data_to_mat4(int width, int height, float aspect
|
|||||||
|
|
||||||
/* image center as rotation center
|
/* image center as rotation center
|
||||||
*
|
*
|
||||||
* Rotation matrix is constructing in a way rotaion happens around image center,
|
* Rotation matrix is constructing in a way rotation happens around image center,
|
||||||
* and it's matter of calculating trasnlation in a way, that applying translation
|
* and it's matter of calculating translation in a way, that applying translation
|
||||||
* after rotation would make it so rotation happens around median point of tracks
|
* after rotation would make it so rotation happens around median point of tracks
|
||||||
* used for translation stabilization.
|
* used for translation stabilization.
|
||||||
*/
|
*/
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
/** \file blender/bmesh/operators/bmo_wireframe.c
|
/** \file blender/bmesh/operators/bmo_wireframe.c
|
||||||
* \ingroup bmesh
|
* \ingroup bmesh
|
||||||
*
|
*
|
||||||
* Creates a solid wireframe from conected faces.
|
* Creates a solid wireframe from connected faces.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MEM_guardedalloc.h"
|
#include "MEM_guardedalloc.h"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
/** \file blender/bmesh/operators/bmesh_wireframe.c
|
/** \file blender/bmesh/operators/bmesh_wireframe.c
|
||||||
* \ingroup bmesh
|
* \ingroup bmesh
|
||||||
*
|
*
|
||||||
* Creates a solid wireframe from conected faces.
|
* Creates a solid wireframe from connected faces.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MEM_guardedalloc.h"
|
#include "MEM_guardedalloc.h"
|
||||||
|
@ -91,7 +91,7 @@ void make_editMball(Object *obedit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* This function is called, when MetaBall Object switched from
|
/* This function is called, when MetaBall Object switched from
|
||||||
* edit mode to object mode. List od MetaElements is copied
|
* edit mode to object mode. List of MetaElements is copied
|
||||||
* from object->data->edit_elems to object->data->elems. */
|
* from object->data->edit_elems to object->data->elems. */
|
||||||
void load_editMball(Object *UNUSED(obedit))
|
void load_editMball(Object *UNUSED(obedit))
|
||||||
{
|
{
|
||||||
|
@ -5140,7 +5140,7 @@ static bool bm_loop_calc_opposite_co(BMLoop *l_tmp,
|
|||||||
const float fac = line_point_factor_v3(tvec, l_iter->v->co, l_iter->next->v->co);
|
const float fac = line_point_factor_v3(tvec, l_iter->v->co, l_iter->next->v->co);
|
||||||
/* allow some overlap to avoid missing the intersection because of float precision */
|
/* allow some overlap to avoid missing the intersection because of float precision */
|
||||||
if ((fac > -FLT_EPSILON) && (fac < 1.0f + FLT_EPSILON)) {
|
if ((fac > -FLT_EPSILON) && (fac < 1.0f + FLT_EPSILON)) {
|
||||||
/* likelyhood of multiple intersections per ngon is quite low,
|
/* likelihood of multiple intersections per ngon is quite low,
|
||||||
* it would have to loop back on its self, but better support it
|
* it would have to loop back on its self, but better support it
|
||||||
* so check for the closest opposite edge */
|
* so check for the closest opposite edge */
|
||||||
const float tdist = len_v3v3(l_tmp->v->co, tvec);
|
const float tdist = len_v3v3(l_tmp->v->co, tvec);
|
||||||
|
@ -956,7 +956,7 @@ typedef enum {
|
|||||||
UNIFIED_PAINT_ALPHA = (1 << 1),
|
UNIFIED_PAINT_ALPHA = (1 << 1),
|
||||||
UNIFIED_PAINT_WEIGHT = (1 << 5),
|
UNIFIED_PAINT_WEIGHT = (1 << 5),
|
||||||
|
|
||||||
/* only used if unified size is enabled, mirros the brush flags
|
/* only used if unified size is enabled, mirrors the brush flags
|
||||||
* BRUSH_LOCK_SIZE and BRUSH_SIZE_PRESSURE */
|
* BRUSH_LOCK_SIZE and BRUSH_SIZE_PRESSURE */
|
||||||
UNIFIED_PAINT_BRUSH_LOCK_SIZE = (1 << 2),
|
UNIFIED_PAINT_BRUSH_LOCK_SIZE = (1 << 2),
|
||||||
UNIFIED_PAINT_BRUSH_SIZE_PRESSURE = (1 << 3),
|
UNIFIED_PAINT_BRUSH_SIZE_PRESSURE = (1 << 3),
|
||||||
|
@ -121,7 +121,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *UNUSED(ob),
|
|||||||
CLAMP(frac, 0.0f, 1.0f);
|
CLAMP(frac, 0.0f, 1.0f);
|
||||||
|
|
||||||
if (bmd->flag & MOD_BUILD_FLAG_REVERSE) {
|
if (bmd->flag & MOD_BUILD_FLAG_REVERSE) {
|
||||||
frac = 1.0 - frac;
|
frac = 1.0f - frac;
|
||||||
}
|
}
|
||||||
|
|
||||||
numFaces_dst = numPoly_src * frac;
|
numFaces_dst = numPoly_src * frac;
|
||||||
|
@ -1368,7 +1368,7 @@ static PyObject *Matrix_rotate(MatrixObject *self, PyObject *value)
|
|||||||
PyDoc_STRVAR(Matrix_decompose_doc,
|
PyDoc_STRVAR(Matrix_decompose_doc,
|
||||||
".. method:: decompose()\n"
|
".. method:: decompose()\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Return the location, rotaion and scale components of this matrix.\n"
|
" Return the location, rotation and scale components of this matrix.\n"
|
||||||
"\n"
|
"\n"
|
||||||
" :return: loc, rot, scale triple.\n"
|
" :return: loc, rot, scale triple.\n"
|
||||||
" :rtype: (:class:`Vector`, :class:`Quaternion`, :class:`Vector`)"
|
" :rtype: (:class:`Vector`, :class:`Quaternion`, :class:`Vector`)"
|
||||||
|
@ -2728,7 +2728,7 @@ static int wm_save_mainfile_invoke(bContext *C, wmOperator *op, const wmEvent *U
|
|||||||
|
|
||||||
RNA_string_set(op->ptr, "filepath", name);
|
RNA_string_set(op->ptr, "filepath", name);
|
||||||
|
|
||||||
/* if we're saving for the first time and prefer relative paths - any existign paths will be absolute,
|
/* if we're saving for the first time and prefer relative paths - any existing paths will be absolute,
|
||||||
* enable the option to remap paths to avoid confusion [#37240] */
|
* enable the option to remap paths to avoid confusion [#37240] */
|
||||||
if ((G.relbase_valid == false) && (U.flag & USER_RELPATHS)) {
|
if ((G.relbase_valid == false) && (U.flag & USER_RELPATHS)) {
|
||||||
PropertyRNA *prop = RNA_struct_find_property(op->ptr, "relative_remap");
|
PropertyRNA *prop = RNA_struct_find_property(op->ptr, "relative_remap");
|
||||||
|
Loading…
Reference in New Issue
Block a user