Added update of normals and face center after using NKey properties or
do-centre option in Mesh EditMode.
This commit is contained in:
2005-06-12 12:44:51 +00:00
parent 3d4438dcd7
commit 0197fdc8b5
2 changed files with 5 additions and 0 deletions

View File

@@ -96,6 +96,7 @@
#include "BIF_drawimage.h" #include "BIF_drawimage.h"
#include "BIF_editgroup.h" #include "BIF_editgroup.h"
#include "BIF_editarmature.h" #include "BIF_editarmature.h"
#include "BIF_editmesh.h"
#include "BIF_gl.h" #include "BIF_gl.h"
#include "BIF_glutil.h" #include "BIF_glutil.h"
#include "BIF_interface.h" #include "BIF_interface.h"
@@ -1257,6 +1258,8 @@ static void v3d_editvertex_buts(uiBlock *block, Object *ob, float lim)
CLAMP(eed->crease, 0.0, 1.0); CLAMP(eed->crease, 0.0, 1.0);
} }
} }
recalc_editnormals();
} }
else if(ob->type==OB_CURVE || ob->type==OB_SURF) { else if(ob->type==OB_CURVE || ob->type==OB_SURF) {
extern ListBase editNurb; /* editcurve.c */ extern ListBase editNurb; /* editcurve.c */

View File

@@ -1624,6 +1624,8 @@ void docentre(int centremode)
for(eve= em->verts.first; eve; eve= eve->next) { for(eve= em->verts.first; eve; eve= eve->next) {
VecSubf(eve->co, eve->co, cent); VecSubf(eve->co, eve->co, cent);
} }
recalc_editnormals();
} }
} }