Cleanup
This commit is contained in:
parent
f789d0b606
commit
bba80ed7af
|
@ -25,7 +25,7 @@
|
|||
* again into the appropriate data structures.
|
||||
*
|
||||
* This way we do not need to accurately track changes, compare dates and
|
||||
* invalidate cache entries, at the cost of exta computation. If everything
|
||||
* invalidate cache entries, at the cost of extra computation. If everything
|
||||
* is stored in a global cache, computations can perhaps even be shared between
|
||||
* different scenes where it may be hard to detect duplicate work.
|
||||
*/
|
||||
|
|
|
@ -78,7 +78,7 @@ private:
|
|||
void Initialize(void);
|
||||
|
||||
/**
|
||||
* Uninitiailize XDND and all related X atoms
|
||||
* Uninitialize XDND and all related X atoms
|
||||
*/
|
||||
void Uninitialize(void);
|
||||
|
||||
|
|
|
@ -867,7 +867,7 @@ unsigned int BLI_scanfill_calc_ex(ScanFillContext *sf_ctx, const int flag, const
|
|||
* which historically this function supports so better not change */
|
||||
|
||||
/* warning: this only gives stable direction with single polygons,
|
||||
* ideally we'd calcualte connectivity and calculate each polys normal, see T41047 */
|
||||
* ideally we'd calculate connectivity and each polys normal, see T41047 */
|
||||
const float *v_prev;
|
||||
|
||||
zero_v3(n);
|
||||
|
|
|
@ -156,7 +156,7 @@ static LaplacianSystem *init_laplacian_system(int a_numEdges, int a_numFaces, in
|
|||
return sys;
|
||||
}
|
||||
|
||||
/* Compute weigth between vertice v_i and all your neighbors
|
||||
/* Compute weight between vertice v_i and all your neighbors
|
||||
* weight between v_i and v_neighbor
|
||||
* Wij = cot(alpha) + cot(beta) / (4.0 * total area of all faces * sum all weight)
|
||||
* v_i *
|
||||
|
|
|
@ -284,7 +284,7 @@ void ControllerExporter::export_skin_controller(Object *ob, Object *ob_arm)
|
|||
}
|
||||
|
||||
if (oob_counter > 0) {
|
||||
fprintf(stderr, "Ignored %d Vertex weigths which use index to non existing VGroup %ld.\n", oob_counter, joint_index_by_def_index.size());
|
||||
fprintf(stderr, "Ignored %d Vertex weights which use index to non existing VGroup %ld.\n", oob_counter, joint_index_by_def_index.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1202,7 +1202,7 @@ static void render_view3d_startjob(void *customdata, short *stop, short *do_upda
|
|||
float mat[4][4];
|
||||
mul_m4_m4m4(mat, rp->viewmat, object->obmat);
|
||||
invert_m4_m4(object->imat_ren, mat);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
use_border = render_view3d_disprect(rp->scene, rp->ar, rp->v3d,
|
||||
|
|
|
@ -1486,7 +1486,9 @@ static bool save_image_doit(bContext *C, SpaceImage *sima, wmOperator *op, SaveI
|
|||
else {
|
||||
/* TODO, better solution, if a 24bit image is painted onto it may contain alpha */
|
||||
if ((simopts->im_format.planes == R_IMF_PLANES_RGBA) &&
|
||||
(ibuf->userflags & IB_BITMAPDIRTY)) { /* it has been painted onto */
|
||||
/* it has been painted onto */
|
||||
(ibuf->userflags & IB_BITMAPDIRTY))
|
||||
{
|
||||
/* checks each pixel, not ideal */
|
||||
ibuf->planes = BKE_imbuf_alpha_test(ibuf) ? R_IMF_PLANES_RGBA : R_IMF_PLANES_RGB;
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ class GrayImage;
|
|||
class SteerableViewMap
|
||||
{
|
||||
protected:
|
||||
// for each vector the list of nbOrientations weigths corresponding to its contributions
|
||||
// for each vector the list of nbOrientations weights corresponding to its contributions
|
||||
// to the nbOrientations directional maps
|
||||
map<unsigned int, double*> _mapping;
|
||||
unsigned _nbOrientations;
|
||||
|
@ -73,7 +73,7 @@ public:
|
|||
virtual void Reset();
|
||||
|
||||
/*! Adds a FEdge to steerable VM.
|
||||
* Returns the nbOrientations weigths corresponding to the FEdge contributions to the nbOrientations
|
||||
* Returns the nbOrientations weights corresponding to the FEdge contributions to the nbOrientations
|
||||
* directional maps.
|
||||
*/
|
||||
double *AddFEdge(FEdge *iFEdge);
|
||||
|
|
|
@ -3044,7 +3044,7 @@ static void update_glsl_display_processor(const ColorManagedViewSettings *view_s
|
|||
global_glsl_state.exposure = view_settings->exposure;
|
||||
global_glsl_state.gamma = view_settings->gamma;
|
||||
|
||||
/* We're using curve mapping's address as a acache ID,
|
||||
/* We're using curve mapping's address as a cache ID,
|
||||
* so we need to make sure re-allocation gives new address here.
|
||||
* We do this by allocating new curve mapping before freeing ol one.
|
||||
*/
|
||||
|
|
|
@ -59,7 +59,7 @@ public:
|
|||
virtual void ProcessReplica();
|
||||
|
||||
void SetBlendTime (float newtime);
|
||||
void BlendShape(struct Key* key, float weigth);
|
||||
void BlendShape(struct Key* key, float weight);
|
||||
|
||||
bAction* GetAction() { return m_action; }
|
||||
void SetAction(bAction* act) { m_action= act; }
|
||||
|
|
Loading…
Reference in New Issue