Another 3-in-one commit:
- Unitialized variable in new shadow code caused Sun lamp shadow to not work. - Ipo handle bug: when the handle was vertical it flipped around - Loop select: unitialized variable caused it to work unpredictable in cases. Also found an unitialized var in collaps_edgeuvs().
This commit is contained in:
@@ -552,7 +552,7 @@ void sort_time_ipocurve(IpoCurve *icu)
|
|||||||
ok= 1;
|
ok= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(bezt->vec[0][0]>=bezt->vec[1][0] && bezt->vec[2][0]<=bezt->vec[1][0]) {
|
if(bezt->vec[0][0]>bezt->vec[1][0] && bezt->vec[2][0]<bezt->vec[1][0]) {
|
||||||
SWAP(float, bezt->vec[0][0], bezt->vec[2][0]);
|
SWAP(float, bezt->vec[0][0], bezt->vec[2][0]);
|
||||||
SWAP(float, bezt->vec[0][1], bezt->vec[2][1]);
|
SWAP(float, bezt->vec[0][1], bezt->vec[2][1]);
|
||||||
}
|
}
|
||||||
@@ -2210,7 +2210,6 @@ void add_to_cfra_elem(ListBase *lb, BezTriple *bezt)
|
|||||||
void make_cfra_list(Ipo *ipo, ListBase *elems)
|
void make_cfra_list(Ipo *ipo, ListBase *elems)
|
||||||
{
|
{
|
||||||
IpoCurve *icu;
|
IpoCurve *icu;
|
||||||
CfraElem *ce;
|
|
||||||
BezTriple *bezt;
|
BezTriple *bezt;
|
||||||
int a;
|
int a;
|
||||||
|
|
||||||
|
|||||||
@@ -1022,7 +1022,7 @@ float lamp_get_visibility(LampRen *lar, float *co, float *lv, float *dist)
|
|||||||
return 1.0f;
|
return 1.0f;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
float visifac, t;
|
float visifac= 1.0f, t;
|
||||||
|
|
||||||
VECSUB(lv, co, lar->co);
|
VECSUB(lv, co, lar->co);
|
||||||
*dist= sqrt( INPR(lv, lv));
|
*dist= sqrt( INPR(lv, lv));
|
||||||
|
|||||||
@@ -1531,7 +1531,7 @@ void loop_multiselect(int looptype)
|
|||||||
static void mouse_mesh_loop(void)
|
static void mouse_mesh_loop(void)
|
||||||
{
|
{
|
||||||
EditEdge *eed;
|
EditEdge *eed;
|
||||||
int select;
|
int select= 1;
|
||||||
int dist= 50;
|
int dist= 50;
|
||||||
|
|
||||||
eed= findnearestedge(&dist);
|
eed= findnearestedge(&dist);
|
||||||
|
|||||||
@@ -5960,7 +5960,7 @@ static void collapse_edgeuvs(void)
|
|||||||
wUVNode *curwnode;
|
wUVNode *curwnode;
|
||||||
wUVEdgeCollect *collectedwuve, *newcollectedwuve;
|
wUVEdgeCollect *collectedwuve, *newcollectedwuve;
|
||||||
Collection *wuvecollection, *newcollection;
|
Collection *wuvecollection, *newcollection;
|
||||||
int curtag, balanced, collectionfound, vcount;
|
int curtag, balanced, collectionfound= 0, vcount;
|
||||||
float avg[2];
|
float avg[2];
|
||||||
|
|
||||||
if (!CustomData_has_layer(&G.editMesh->fdata, CD_MTFACE))
|
if (!CustomData_has_layer(&G.editMesh->fdata, CD_MTFACE))
|
||||||
|
|||||||
Reference in New Issue
Block a user