forked from bartvdbraak/blender
fixed a bug with normals
This commit is contained in:
parent
005b37643d
commit
c785b06cc4
@ -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 (*pnors)[3] = polyNors_r, (*fnors)[3] = faceNors_r;
|
||||||
float (*tnorms)[3] = NULL;
|
float (*tnorms)[3] = NULL;
|
||||||
int i, j, *origIndex;
|
int i, j;
|
||||||
MFace *mf;
|
MFace *mf;
|
||||||
MPoly *mp;
|
MPoly *mp;
|
||||||
MLoop *ml;
|
MLoop *ml;
|
||||||
@ -1743,7 +1743,7 @@ void mesh_calc_normals(MVert *mverts, int numVerts, MLoop *mloop, MPoly *mpolys,
|
|||||||
if (origIndexFace && fnors==faceNors_r && numFaces) {
|
if (origIndexFace && fnors==faceNors_r && numFaces) {
|
||||||
mf = mfaces;
|
mf = mfaces;
|
||||||
for (i=0; i<numFaces; i++, mf++, origIndexFace++) {
|
for (i=0; i<numFaces; i++, mf++, origIndexFace++) {
|
||||||
if (origIndex < numPolys) {
|
if (*origIndexFace < numPolys) {
|
||||||
VECCOPY(fnors[i], tnorms[*origIndexFace]);
|
VECCOPY(fnors[i], tnorms[*origIndexFace]);
|
||||||
} else {
|
} else {
|
||||||
/*eek, we're not corrusponding to polys*/
|
/*eek, we're not corrusponding to polys*/
|
||||||
|
@ -873,7 +873,7 @@ void MESH_OT_select_similar(wmOperatorType *ot)
|
|||||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||||
|
|
||||||
/* properties */
|
/* 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);
|
RNA_def_enum_funcs(prop, select_similar_type_itemf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user