Bugfix #2734
Added update of normals and face center after using NKey properties or do-centre option in Mesh EditMode.
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user