fixed a bug with normals

This commit is contained in:
Joseph Eagar 2011-04-15 02:18:24 +00:00
parent 005b37643d
commit c785b06cc4
2 changed files with 3 additions and 3 deletions

@ -1694,7 +1694,7 @@ void mesh_calc_normals(MVert *mverts, int numVerts, MLoop *mloop, MPoly *mpolys,
{
float (*pnors)[3] = polyNors_r, (*fnors)[3] = faceNors_r;
float (*tnorms)[3] = NULL;
int i, j, *origIndex;
int i, j;
MFace *mf;
MPoly *mp;
MLoop *ml;
@ -1743,7 +1743,7 @@ void mesh_calc_normals(MVert *mverts, int numVerts, MLoop *mloop, MPoly *mpolys,
if (origIndexFace && fnors==faceNors_r && numFaces) {
mf = mfaces;
for (i=0; i<numFaces; i++, mf++, origIndexFace++) {
if (origIndex < numPolys) {
if (*origIndexFace < numPolys) {
VECCOPY(fnors[i], tnorms[*origIndexFace]);
} else {
/*eek, we're not corrusponding to polys*/

@ -873,7 +873,7 @@ void MESH_OT_select_similar(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
prop= RNA_def_enum(ot->srna, "type", prop_similar_types, SIMVERT_NORMAL, "Type", "");
prop= ot->prop= RNA_def_enum(ot->srna, "type", prop_similar_types, SIMVERT_NORMAL, "Type", "");
RNA_def_enum_funcs(prop, select_similar_type_itemf);
}